1
0
Fork 0
forked from wry/wry

autocommit 2022-04-20 20:20:36 CEST

This commit is contained in:
Julian Orth 2022-04-20 20:20:36 +02:00
parent 34e665cd8b
commit dae9e52347
8 changed files with 22 additions and 13 deletions

View file

@ -417,8 +417,13 @@ impl Wm {
}
async fn set_fullscreen(&self, data: &Rc<XwindowData>, fullscreen: bool) {
data.info.fullscreen.set(fullscreen);
self.set_net_wm_state(data).await;
if false {
// NOTE: We do not want to inform the program if the user changes the fullscreen
// status of the window. Programs usually provide an in-program way to enter/exit
// fullscreen mode.
data.info.fullscreen.set(fullscreen);
self.set_net_wm_state(data).await;
}
}
async fn send_wm_message(&self, window: &Rc<XwindowData>, event_mask: u32, data: &[u32]) {