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();