server: only update outputs for current mode events

Fixes #164
This commit is contained in:
Shawn Wallace 2025-05-27 19:43:37 -04:00
parent 5c0351ff33
commit 9261c278af

View file

@ -1026,9 +1026,14 @@ impl Output {
height,
refresh,
} => {
if flags
.into_result()
.is_ok_and(|f| f.contains(client::wl_output::Mode::Current))
{
self.dimensions.width = width;
self.dimensions.height = height;
debug!("{} dimensions: {width}x{height}", self.server.id());
}
self.server
.mode(convert_wenum(flags), width, height, refresh);
}