[gtk/present-toplevel-2: 72/79] x11: Only use state of toplevels
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk/present-toplevel-2: 72/79] x11: Only use state of toplevels
 
- Date: Mon,  9 Mar 2020 15:37:38 +0000 (UTC)
 
commit 924b9cad23defd90a3280eb6f5b89eebac3a3cc8
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]