quartz: Drop mentions of foreign windows

The quartz backend never creates foreign windows,
so no need to check for window type.
This commit is contained in:
Matthias Clasen 2017-11-05 12:09:06 -05:00
parent 08be6651d6
commit 807cac2c79
2 changed files with 2 additions and 6 deletions

View File

@ -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;

View File

@ -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