mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
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.
This commit is contained in:
parent
a46d4e51f7
commit
182dd3c1ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user