mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 512529 - Prefer GDK_WINDOW_STATE_FULLSCREEN over GDK_WINDOW_STATE_MAXIMIZED; r=karlt
This commit is contained in:
parent
8b76d285cd
commit
4f155baeb3
@ -3404,6 +3404,11 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent)
|
|||||||
DispatchMinimizeEventAccessible();
|
DispatchMinimizeEventAccessible();
|
||||||
#endif //ACCESSIBILITY
|
#endif //ACCESSIBILITY
|
||||||
}
|
}
|
||||||
|
else if (aEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) {
|
||||||
|
LOG(("\tFullscreen\n"));
|
||||||
|
event.mSizeMode = nsSizeMode_Fullscreen;
|
||||||
|
mSizeState = nsSizeMode_Fullscreen;
|
||||||
|
}
|
||||||
else if (aEvent->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) {
|
else if (aEvent->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) {
|
||||||
LOG(("\tMaximized\n"));
|
LOG(("\tMaximized\n"));
|
||||||
event.mSizeMode = nsSizeMode_Maximized;
|
event.mSizeMode = nsSizeMode_Maximized;
|
||||||
@ -3412,11 +3417,6 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent)
|
|||||||
DispatchMaximizeEventAccessible();
|
DispatchMaximizeEventAccessible();
|
||||||
#endif //ACCESSIBILITY
|
#endif //ACCESSIBILITY
|
||||||
}
|
}
|
||||||
else if (aEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) {
|
|
||||||
LOG(("\tFullscreen\n"));
|
|
||||||
event.mSizeMode = nsSizeMode_Fullscreen;
|
|
||||||
mSizeState = nsSizeMode_Fullscreen;
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
LOG(("\tNormal\n"));
|
LOG(("\tNormal\n"));
|
||||||
event.mSizeMode = nsSizeMode_Normal;
|
event.mSizeMode = nsSizeMode_Normal;
|
||||||
|
Loading…
Reference in New Issue
Block a user