mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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
This commit is contained in:
parent
1a0a8e112e
commit
8a39d2269e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user