On Wayland, fix resize being sent on focus change

Fixes #3263.
This commit is contained in:
Kirill Chibisov 2023-12-20 18:48:50 +04:00 committed by GitHub
parent cc33212479
commit 04ca85a909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 18 deletions

View file

@ -307,7 +307,11 @@ impl WindowHandler for WinitState {
&mut self.events_sink,
);
self.window_compositor_updates[pos].size = Some(new_size);
// NOTE: Only update when the value is `Some` to not override consequent configures with
// the same sizes.
if new_size.is_some() {
self.window_compositor_updates[pos].size = new_size;
}
}
}