summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2012-07-18 16:06:06 +0100
committerRob Bradford <rob@linux.intel.com>2012-07-18 16:08:36 +0100
commit8a39d2269e9ab7354cdb38ca6255165e641ca9bd (patch)
treea7ae52f66d14fab7a1dd1e45a13ec4a075f89de0 /gdk
parent1a0a8e112e591777fbcfa3e925f2264ce219c49c (diff)
downloadgtk+-8a39d2269e9ab7354cdb38ca6255165e641ca9bd.tar.gz
wayland: Don't compare against GdkWindowTypeHint as a bitmask
The hint was being compared as a bitmask which means types that were not in the list were being erroneously matched
Diffstat (limited to 'gdk')
-rw-r--r--gdk/wayland/gdkwindow-wayland.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 450df4a017..f2b7bf3cb1 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -635,9 +635,9 @@ gdk_wayland_window_map (GdkWindow *window)
{
parent = GDK_WINDOW_IMPL_WAYLAND (impl->transient_for->impl);
- if (impl->hint & GDK_WINDOW_TYPE_HINT_POPUP_MENU ||
- impl->hint & GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU ||
- impl->hint & GDK_WINDOW_TYPE_HINT_COMBO)
+ if (impl->hint == GDK_WINDOW_TYPE_HINT_POPUP_MENU ||
+ impl->hint == GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU ||
+ impl->hint == GDK_WINDOW_TYPE_HINT_COMBO)
{
struct wl_seat *grab_input_seat = NULL;