mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
wayland: set the "transient inactive" flag on tooltip surfaces
This prevents the tooltip surfaces from taking the focus away from the parent surface. https://bugzilla.gnome.org/show_bug.cgi?id=693313
This commit is contained in:
parent
8d5d9c50b1
commit
a8862727c9
@ -593,9 +593,16 @@ gdk_wayland_window_map (GdkWindow *window)
|
||||
_gdk_wayland_display_get_serial (wayland_display),
|
||||
parent->surface,
|
||||
window->x, window->y, 0);
|
||||
} else {
|
||||
wl_shell_surface_set_transient (impl->shell_surface, parent->surface,
|
||||
window->x, window->y, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
guint32 flags = 0;
|
||||
|
||||
if (impl->hint == GDK_WINDOW_TYPE_HINT_TOOLTIP)
|
||||
flags = WL_SHELL_SURFACE_TRANSIENT_INACTIVE;
|
||||
|
||||
wl_shell_surface_set_transient (impl->shell_surface, parent->surface,
|
||||
window->x, window->y, flags);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user