From 2d247df1bb72b6af470808e64a1ec6a92e0dad25 Mon Sep 17 00:00:00 2001 From: Pietro Brenna Date: Thu, 9 Apr 2020 10:32:34 +0200 Subject: [PATCH] epilepsy warning resolved --- src/window_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window_state.rs b/src/window_state.rs index 2d3050f..5594504 100644 --- a/src/window_state.rs +++ b/src/window_state.rs @@ -208,7 +208,7 @@ pub fn focus_in( window.set_type_hint(gdk::WindowTypeHint::Dock); if let Some((_x, _y, width, height)) = window.get_window().and_then(|x| Some(x.get_geometry())) { - if (height != s.1 || width != s.0) && w_state.get_full() != Full { + if (height != s.1 || width != s.0) && w_state.get_full() != Full && !window.is_maximized() { window.hide(); window.resize(s.0, s.1); window.show();