[gtk/present-toplevel-2: 5/33] x11: Only use state of toplevels



commit 8da00c4e6cb0d10a4780460c6832377619426bdb
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 8 09:20:07 2020 -0700

    x11: Only use state of toplevels
    
    Other surface subtypes don't have that property.

 gdk/x11/gdkmonitor-x11.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gdk/x11/gdkmonitor-x11.c b/gdk/x11/gdkmonitor-x11.c
index 341917ad8c..85e1924053 100644
--- a/gdk/x11/gdkmonitor-x11.c
+++ b/gdk/x11/gdkmonitor-x11.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]