Commit 182dd3c1 authored by Matthias Clasen's avatar Matthias Clasen

Fix a mixup in popover realization

When the window is on a non-default screen, popover_realize
ended up passing a visual and a parent_window from different
screens into gdk_window_new, which doesn't work. Fix it by
using the visual of the parent window.
parent a46d4e51
......@@ -6299,7 +6299,7 @@ popover_realize (GtkWidget *widget,
attributes.y = rect.y;
attributes.width = rect.width;
attributes.height = rect.height;
attributes.visual = gtk_widget_get_visual (widget);
attributes.visual = gtk_widget_get_visual (GTK_WIDGET (window));
attributes.event_mask = gtk_widget_get_events (popover->widget) |
GDK_EXPOSURE_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment