[gtk+] wayland: set the "transient inactive" flag on tooltip surfaces
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: set the "transient inactive" flag on tooltip surfaces
- Date: Tue, 12 Feb 2013 15:45:33 +0000 (UTC)
commit a8862727c93f1ffbcf98b28bd7acced9793add2b
Author: Thomas Wood <thomas wood intel com>
Date: Thu Feb 7 11:27:25 2013 +0000
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
gdk/wayland/gdkwindow-wayland.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index e533e9f..5c8d6b6 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]