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, height,
refresh, refresh,
} => { } => {
self.dimensions.width = width; if flags
self.dimensions.height = height; .into_result()
debug!("{} dimensions: {width}x{height}", self.server.id()); .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 self.server
.mode(convert_wenum(flags), width, height, refresh); .mode(convert_wenum(flags), width, height, refresh);
} }