forked from AuroraMiddleware/gtk
x11: Only use state of toplevels
Other surface subtypes don't have that property.
This commit is contained in:
parent
4c06c3bb19
commit
84095febed
@ -44,6 +44,9 @@ gdk_monitor_has_fullscreen_window (GdkMonitor *monitor)
|
||||
{
|
||||
surface = l->data;
|
||||
|
||||
if (!GDK_IS_TOPLEVEL (surface))
|
||||
continue;
|
||||
|
||||
if ((gdk_toplevel_get_state (GDK_TOPLEVEL (surface)) & GDK_SURFACE_STATE_FULLSCREEN) == 0)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user