[gtk+/gtk-3-18] GtkPopover: Don't apply shape on wayland



commit 7394270efad892464a26fac8fc35cbe29696ec5c
Author: Timm Bäder <mail baedert org>
Date:   Thu Oct 1 13:08:37 2015 +0200

    GtkPopover: Don't apply shape on wayland
    
    Popovers are subsurfaces on wayland so we don't need that, and the shape
    messed up hidpi popovers there.

 gtk/gtkpopover.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 5c4e0fe..0b098ac 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -871,6 +871,11 @@ gtk_popover_update_shape (GtkPopover *popover)
   GdkWindow *win;
   cairo_t *cr;
 
+#ifdef GDK_WINDOWING_WAYLAND
+  if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
+    return;
+#endif
+
   win = gtk_widget_get_window (widget);
   surface =
     gdk_window_create_similar_surface (win,


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