Commit 9668962d authored by Timm Bäder's avatar Timm Bäder 🤔 Committed by Matthias Clasen
Browse files

gtkdnd: Set the dnd window's screen before its visual

This makes dnd icons work for widgets on a !default screen.
parent b3c28e14
......@@ -3392,11 +3392,14 @@ gtk_drag_set_icon_surface (GdkDragContext *context,
has_rgba =
rgba_visual != NULL &&
gdk_screen_is_composited (screen);
gtk_window_set_screen (GTK_WINDOW (window), screen);
if (has_rgba)
gtk_widget_set_visual (GTK_WIDGET (window), rgba_visual);
gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
gtk_window_set_screen (GTK_WINDOW (window), screen);
set_can_change_screen (window, TRUE);
Supports Markdown
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