[gtk+/gtk-3-18] wayland: Map windows with tooltip hint as subsurfaces
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-18] wayland: Map windows with tooltip hint as subsurfaces
- Date: Mon, 9 Nov 2015 13:51:09 +0000 (UTC)
commit e135358ed02d9734547aeb1f355195817598674f
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Oct 13 20:48:51 2015 +0800
wayland: Map windows with tooltip hint as subsurfaces
Tooltips tend to be placed on top of a parent surface with a given
relative coordinate, and without any input focus. So lets map them as
subsurfaces.
https://bugzilla.gnome.org/show_bug.cgi?id=756496
gdk/wayland/gdkwindow-wayland.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 2447c5d..8d31137 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1221,9 +1221,14 @@ should_be_mapped (GdkWindow *window)
static gboolean
should_map_as_subsurface (GdkWindow *window)
{
+ GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_SUBSURFACE)
return TRUE;
+ if (impl->hint == GDK_WINDOW_TYPE_HINT_TOOLTIP)
+ return TRUE;
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]