x11: Make selection handling work across screens

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 27 July 2015 22:20 UTC

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

55edc81 x11: Make selection handling work across screens
gdk/x11/gdkdisplay-x11.c | 29 +++++++++++++++++++++++++++--
gdk/x11/gdkdisplay-x11.h | 1 +
2 files changed, 28 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share