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

@ -727,7 +727,7 @@ impl MetalConnector {
match &event {
ConnectorEvent::Connected(ty) => match state {
FrontState::Disconnected => {
let non_desktop = ty.non_desktop;
let non_desktop = ty.non_desktop_effective;
self.on_change.send_event(event);
set_state(FrontState::Connected { non_desktop });
}
@ -1915,7 +1915,8 @@ impl MetalBackend {
output_id: dd.output_id.clone(),
width_mm: dd.mm_width as _,
height_mm: dd.mm_height as _,
non_desktop: dd.non_desktop_effective,
non_desktop: dd.non_desktop,
non_desktop_effective: dd.non_desktop_effective,
vrr_capable: dd.vrr_capable,
transfer_functions,
color_spaces,

View file

@ -597,6 +597,7 @@ impl XBackend {
width_mm: output.width.get(),
height_mm: output.height.get(),
non_desktop: false,
non_desktop_effective: false,
vrr_capable: false,
transfer_functions: vec![],
color_spaces: vec![],