1
0
Fork 0
forked from wry/wry

head-management: add mode-info-v1 extension

This commit is contained in:
Julian Orth 2025-07-12 09:32:38 +02:00
parent e24ea33734
commit c25ddc8b5b
7 changed files with 83 additions and 0 deletions

View file

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