[gtk+] gtkdnd: Set the dnd window's screen before its visual
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkdnd: Set the dnd window's screen before its visual
- Date: Sat, 24 Jan 2015 21:00:55 +0000 (UTC)
commit 9668962da12df65810856178bbb5ec1866a953d0
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 23 11:21:02 2015 +0100
gtkdnd: Set the dnd window's screen before its visual
This makes dnd icons work for widgets on a !default screen.
https://bugzilla.gnome.org/show_bug.cgi?id=743393
gtk/gtkdnd.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 8fc1f8b..a850543 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -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);
#ifdef GDK_WINDOWING_WAYLAND
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]