diff options
author | Timm Bäder <mail@baedert.org> | 2015-10-01 13:08:37 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2015-10-07 09:49:51 +0200 |
commit | d8856f1b61caf5bca71070b5a59812fdd33314b9 (patch) | |
tree | ce5dec65e2da35c9697bca4cb7b0ace1bf5a140a /gtk/gtkpopover.c | |
parent | dad1931b5f4a64d105554681ec84d859f020d6e2 (diff) | |
download | gtk+-d8856f1b61caf5bca71070b5a59812fdd33314b9.tar.gz |
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.
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r-- | gtk/gtkpopover.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 5c4e0febb7..0b098ac53c 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, |