[gtk+] wayland: Stop using subsurfaces for popovers



commit 41f26ea7a65f4dd3001ebcd79b4a21825529d43b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 26 15:34:46 2017 -0400

    wayland: Stop using subsurfaces for popovers
    
    Subsurfaces don't currently work with our new rendering,
    and this makes popovers unusable. We can go back to using
    subsurfaces for popovers when this is fixed.

 gtk/gtkpopover.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 3f787fd..84f034b 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -475,7 +475,11 @@ gtk_popover_realize (GtkWidget *widget)
 
   gtk_widget_get_window_allocation (widget, &allocation);
 
-#ifdef GDK_WINDOWING_WAYLAND
+  /* We want to use subsurfaces for popovers, so they can extend outside
+   * the main window, but for that, we first need to have clean subsurface
+   * support that works with GSK.
+   */
+#if 0
   if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
     {
       GtkWidget *toplevel = gtk_widget_get_toplevel (widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]