[gtk+/gtk-3-22] gdkwindow: Allow native subsurface for all parents
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gdkwindow: Allow native subsurface for all parents
- Date: Fri, 18 Nov 2016 18:26:46 +0000 (UTC)
commit 0b46c5b176fb7c53de526dd6d8a3fce9d9bd6547
Author: Olivier Fourdan <ofourdan redhat com>
Date: Tue Nov 15 14:49:03 2016 +0100
gdkwindow: Allow native subsurface for all parents
Under Wayland, a subsurface can have another surface as parent, but
gdk would not allow native windows if the parent is not the root window.
Allow native subsurface for all parent under Wayland, not just for the
root window.
https://bugzilla.gnome.org/show_bug.cgi?id=774475
gdk/gdkwindow.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index bcf148b..28f5270 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1461,6 +1461,11 @@ gdk_window_new (GdkWindow *parent,
if (window->parent->window_type == GDK_WINDOW_ROOT)
native = TRUE; /* Always use native windows for toplevels */
+#ifdef GDK_WINDOWING_WAYLAND
+ if (window->window_type == GDK_WINDOW_SUBSURFACE)
+ native = TRUE; /* Always use native windows for subsurfaces as well */
+#endif
+
if (gdk_window_is_offscreen (window))
{
_gdk_offscreen_window_new (window, attributes, attributes_mask);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]