[gtk/present-toplevel-2: 2/36] x11: Only use state of toplevels
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 2/36] x11: Only use state of toplevels
- Date: Thu, 12 Mar 2020 19:31:18 +0000 (UTC)
commit 84095febed8a6360d11fae71c1b17729ae688dfc
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]