1
0
Fork 0
forked from wry/wry

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

This commit is contained in:
Julian Orth 2025-07-13 11:14:37 +02:00
parent 81a7c973d0
commit b76aade265
17 changed files with 164 additions and 5 deletions

View file

@ -383,6 +383,7 @@ impl JayHeadManagerSessionV1RequestHandler for JayHeadManagerSessionV1 {
COMPOSITOR_SPACE_INFO_TRANSFORM = 1 << 4,
COMPOSITOR_SPACE_INFO_SCALE = 1 << 5,
MODE_INFO = 1 << 6,
NON_DESKTOP_INFO = 1 << 7,
COMPOSITOR_SPACE_INFO_ENABLED = 1 << 13,
}
for head in self.heads.lock().values() {
@ -454,6 +455,11 @@ impl JayHeadManagerSessionV1RequestHandler for JayHeadManagerSessionV1 {
{
i.send_mode(state);
}
if to_send.contains(NON_DESKTOP_INFO)
&& let Some(i) = &head.ext.non_desktop_info_v1
{
i.send_state(state);
}
}
slf.schedule_transaction_result(req.result, None)?;
Ok(())