epilepsy warning resolved

master
Pietro Brenna 2020-04-09 10:32:34 +02:00
parent f37db6d38d
commit 2d247df1bb
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ pub fn focus_in(
window.set_type_hint(gdk::WindowTypeHint::Dock); 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 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.hide();
window.resize(s.0, s.1); window.resize(s.0, s.1);
window.show(); window.show();