summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-27 23:18:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-27 23:20:53 -0400
commit55edc81c10742bf3e410168f6dc317f8aca05938 (patch)
tree5473149ea2bada64124be030f05764e25200d7f2 /gdk/x11/gdkdisplay-x11.h
parent1b43c3f493e577688b22e6c0383d7a1695b66cbc (diff)
downloadgtk+-55edc81c10742bf3e410168f6dc317f8aca05938.tar.gz
x11: Make selection handling work across screens
When dealing with selection events, we might see windows from other screens in the requestor field. The current x11 backend code fails to wrap these in a foreign GdkWindow, since we don't have the corresponding GdkScreen anymore. Work around this by creating such 'foreign screens' on demand. We still maintain the 1:1 relation between the display and the screen returned by gdk_display_get_default_screen(). https://bugzilla.gnome.org/show_bug.cgi?id=721398
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.h')
-rw-r--r--gdk/x11/gdkdisplay-x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/x11/gdkdisplay-x11.h b/gdk/x11/gdkdisplay-x11.h
index aadf255ba6..9b78f61d17 100644
--- a/gdk/x11/gdkdisplay-x11.h
+++ b/gdk/x11/gdkdisplay-x11.h
@@ -39,6 +39,7 @@ struct _GdkX11Display
GdkDisplay parent_instance;
Display *xdisplay;
GdkScreen *screen;
+ GList *screens;
GSource *event_source;