1
0
Fork 0
forked from wry/wry

head-management: add mode-setter-v1 extension

This commit is contained in:
Julian Orth 2025-07-12 09:33:44 +02:00
parent c25ddc8b5b
commit 7e69a80dbc
7 changed files with 128 additions and 0 deletions

View file

@ -108,6 +108,7 @@ enum HeadOp {
SetConnectorEnabled(bool),
SetTransform(Transform),
SetScale(Scale),
SetMode(usize),
}
#[derive(Copy, Clone, Debug, Eq, PartialEq, Default)]
@ -222,6 +223,10 @@ impl HeadManagers {
ext.send_mode(state);
head.session.schedule_done();
}
if let Some(ext) = &head.ext.mode_setter_v1 {
ext.send_modes(state);
head.session.schedule_done();
}
if let Some(ext) = &head.ext.compositor_space_info_v1 {
ext.send_inside_outside(state);
head.session.schedule_done();