mirror of
https://github.com/swaywm/sway.git
synced 2025-10-08 21:25:58 +00:00
sway/desktop: offer new output with allow_drm_leasing for lease
This commit is contained in:
parent
3f3323c47d
commit
47370748a0
1 changed files with 10 additions and 0 deletions
|
@ -597,6 +597,16 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
|||
sway_session_lock_add_output(server->session_lock.lock, output);
|
||||
}
|
||||
|
||||
struct output_config *oc = find_output_config(output);
|
||||
if (oc && oc->allow_drm_leasing > 0) {
|
||||
#if WLR_HAS_DRM_BACKEND
|
||||
if (server->drm_lease_manager) {
|
||||
wlr_drm_lease_v1_manager_offer_output(server->drm_lease_manager,
|
||||
wlr_output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
request_modeset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue