x11: Only use state of toplevels

Other surface subtypes don't have that property.
This commit is contained in:
Matthias Clasen 2020-03-08 09:20:07 -07:00
parent 4c06c3bb19
commit 84095febed

View File

@ -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;