diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-05 12:09:06 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-05 12:09:06 -0500 |
commit | 807cac2c79347a5eec2f6bb6fa44f2fc488ab96a (patch) | |
tree | 42f948f6ff81b7a934c63ac6fb8a7cf1009d6841 | |
parent | 08be6651d6c5ca63e5226d6f5d6a32082177fef5 (diff) | |
download | gtk+-807cac2c79347a5eec2f6bb6fa44f2fc488ab96a.tar.gz |
quartz: Drop mentions of foreign windows
The quartz backend never creates foreign windows,
so no need to check for window type.
-rw-r--r-- | gdk/quartz/gdkevents-quartz.c | 4 | ||||
-rw-r--r-- | gdk/quartz/gdkwindow-quartz.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 6328128bca..0d08d207e7 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -40,9 +40,7 @@ #define GRIP_HEIGHT 15 #define GDK_LION_RESIZE 5 -#define WINDOW_IS_TOPLEVEL(window) \ - (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \ - GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN) +#define WINDOW_IS_TOPLEVEL(window) (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD) /* This is the window corresponding to the key window */ static GdkWindow *current_keyboard_window; diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 429469b442..8449cb00c1 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -62,9 +62,7 @@ static FullscreenSavedGeometry *get_fullscreen_geometry (GdkWindow *window); static void update_toplevel_order (void); static void clear_toplevel_order (void); -#define WINDOW_IS_TOPLEVEL(window) \ - (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \ - GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN) +#define WINDOW_IS_TOPLEVEL(window) (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD) /* * GdkQuartzWindow |