mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes"
This reverts commit 862e0dab03
.
This commit is contained in:
parent
167734c153
commit
de2ea1ebaa
@ -7605,7 +7605,6 @@ gtk_window_state_event (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
priv->fullscreen =
|
priv->fullscreen =
|
||||||
(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0;
|
(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0;
|
||||||
priv->fullscreen_initially = priv->fullscreen;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->changed_mask & GDK_WINDOW_STATE_TILED)
|
if (event->changed_mask & GDK_WINDOW_STATE_TILED)
|
||||||
@ -7618,7 +7617,6 @@ gtk_window_state_event (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
priv->maximized =
|
priv->maximized =
|
||||||
(event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) ? 1 : 0;
|
(event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) ? 1 : 0;
|
||||||
priv->maximize_initially = priv->maximized;
|
|
||||||
g_object_notify (G_OBJECT (widget), "is-maximized");
|
g_object_notify (G_OBJECT (widget), "is-maximized");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user