Commit 9063e5b3 authored by Alexander Larsson's avatar Alexander Larsson

Ensure that windows used for selections are native

This fixes cut and paste in gvim (#588115)
parent ccb09d1c
......@@ -144,6 +144,7 @@ gdk_selection_owner_set_for_display (GdkDisplay *display,
if (GDK_WINDOW_DESTROYED (owner) || !GDK_WINDOW_IS_X11 (owner))
return FALSE;
gdk_window_ensure_native (owner);
xdisplay = GDK_WINDOW_XDISPLAY (owner);
xwindow = GDK_WINDOW_XID (owner);
......@@ -230,10 +231,11 @@ gdk_selection_convert (GdkWindow *requestor,
GdkDisplay *display;
g_return_if_fail (selection != GDK_NONE);
if (GDK_WINDOW_DESTROYED (requestor) || !GDK_WINDOW_IS_X11 (requestor))
gdk_window_ensure_native (requestor);
display = GDK_WINDOW_DISPLAY (requestor);
XConvertSelection (GDK_WINDOW_XDISPLAY (requestor),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment