Bug 512529 - Listen for changes in GDK_WINDOW_STATE_FULLSCREEN; r=karlt

This commit is contained in:
Philipp Hartwig 2012-02-06 18:17:32 +00:00
Родитель a284cb37e1
Коммит e407eb6ec1
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -3389,10 +3389,12 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent)
nsSizeModeEvent event(true, NS_SIZEMODE, this);
// We don't care about anything but changes in the maximized/icon
// We don't care about anything but changes in the maximized/icon/fullscreen
// states
if ((aEvent->changed_mask
& (GDK_WINDOW_STATE_ICONIFIED|GDK_WINDOW_STATE_MAXIMIZED)) == 0) {
& (GDK_WINDOW_STATE_ICONIFIED |
GDK_WINDOW_STATE_MAXIMIZED |
GDK_WINDOW_STATE_FULLSCREEN)) == 0) {
return;
}