forked from AuroraMiddleware/gtk
x11: Stop using gdk_surface_get_state
All the surfaces we are dealing with here are toplevels.
This commit is contained in:
parent
6edff8cd67
commit
f78f8655a6
@ -378,7 +378,7 @@ do_net_wm_state_changes (GdkSurface *surface)
|
||||
gdk_surface_get_surface_type (surface) != GDK_SURFACE_TOPLEVEL)
|
||||
return;
|
||||
|
||||
old_state = gdk_surface_get_state (surface);
|
||||
old_state = gdk_toplevel_get_state (GDK_TOPLEVEL (surface));
|
||||
|
||||
set = unset = 0;
|
||||
|
||||
|
@ -44,7 +44,7 @@ gdk_monitor_has_fullscreen_window (GdkMonitor *monitor)
|
||||
{
|
||||
surface = l->data;
|
||||
|
||||
if ((gdk_surface_get_state (surface) & GDK_SURFACE_STATE_FULLSCREEN) == 0)
|
||||
if ((gdk_toplevel_get_state (GDK_TOPLEVEL (surface)) & GDK_SURFACE_STATE_FULLSCREEN) == 0)
|
||||
continue;
|
||||
|
||||
if (gdk_surface_get_fullscreen_mode (surface) == GDK_FULLSCREEN_ON_ALL_MONITORS ||
|
||||
|
@ -3894,7 +3894,7 @@ check_maximize (MoveResizeData *mv_resize,
|
||||
if (mv_resize->is_resize)
|
||||
return;
|
||||
|
||||
state = gdk_surface_get_state (mv_resize->moveresize_surface);
|
||||
state = gdk_toplevel_get_state (GDK_TOPLEVEL (mv_resize->moveresize_surface));
|
||||
|
||||
if (state & GDK_SURFACE_STATE_MAXIMIZED)
|
||||
return;
|
||||
@ -3916,7 +3916,7 @@ check_unmaximize (MoveResizeData *mv_resize,
|
||||
if (mv_resize->is_resize)
|
||||
return;
|
||||
|
||||
state = gdk_surface_get_state (mv_resize->moveresize_surface);
|
||||
state = gdk_toplevel_get_state (GDK_TOPLEVEL (mv_resize->moveresize_surface));
|
||||
|
||||
if ((state & (GDK_SURFACE_STATE_MAXIMIZED | GDK_SURFACE_STATE_TILED)) == 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user