[gtk/present-toplevel-2: 135/178] x11: Only use state of toplevels
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 135/178] x11: Only use state of toplevels
- Date: Tue, 10 Mar 2020 01:21:17 +0000 (UTC)
commit 433984af8043f3d3252718e1f627f2c210f6b2da
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]