1
0
Fork 0

x11: suppress non-resize configure notify events

This commit is contained in:
William Light 2020-09-14 03:30:30 +02:00
parent 647925ceeb
commit a59ccae56f

View file

@ -311,8 +311,11 @@ impl Window {
xcb::CONFIGURE_NOTIFY => { xcb::CONFIGURE_NOTIFY => {
let event = unsafe { xcb::cast_event::<xcb::ConfigureNotifyEvent>(&event) }; let event = unsafe { xcb::cast_event::<xcb::ConfigureNotifyEvent>(&event) };
let (width, height) = (event.width() as u32, event.height() as u32);
self.new_size = Some((event.width() as u32, event.height() as u32)); if width != self.window_info.width || height != self.window_info.height {
self.new_size = Some((width, height));
}
} }
//// ////