Bug 1523721 - [Linux/Gtk+] Continue processing window_state_event handler when titlebar is updated, r=dao

Recently we quit nsWindow::OnWindowStateEvent()/window_state_event handler when titlebar needs an update due to focus change.
That's incorrect as we need to process other information from the handler - maxminized/normal window state.

Differential Revision: https://phabricator.services.mozilla.com/D18681

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Martin Stransky 2019-02-05 15:07:51 +00:00
parent 018bd4cbe2
commit ed7fbd3a13

View File

@ -2935,7 +2935,6 @@ void nsWindow::OnWindowStateEvent(GtkWidget *aWidget,
!(aEvent->new_window_state & GDK_WINDOW_STATE_FOCUSED);
ForceTitlebarRedraw();
return;
}
// We don't care about anything but changes in the maximized/icon/fullscreen