1
0
Fork 0
forked from wry/wry

head-management: add non-desktop-override-v1 extension

This commit is contained in:
Julian Orth 2025-07-14 11:31:18 +02:00
parent 6647b93e1e
commit 61570bdef7
7 changed files with 85 additions and 0 deletions

View file

@ -265,6 +265,7 @@ impl JayHeadManagerSessionV1 {
let mut new = old;
new.enabled = desired.connector_enabled;
new.mode = desired.mode;
new.non_desktop_override = desired.override_non_desktop;
if old == new {
continue;
}
@ -422,6 +423,13 @@ impl JayHeadManagerSessionV1RequestHandler for JayHeadManagerSessionV1 {
to_send |= MODE_INFO;
to_send |= COMPOSITOR_SPACE_INFO_SIZE;
}
HeadOp::SetNonDesktopOverride(m) => {
state.override_non_desktop = m;
state.update_in_compositor_space(snapshot.wl_output);
to_send |= COMPOSITOR_SPACE_INFO_FULL;
to_send |= CORE_INFO;
to_send |= NON_DESKTOP_INFO;
}
}
}
if to_send.contains(CORE_INFO)