summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-01 17:00:28 +0200
committerHans de Goede <hdegoede@redhat.com>2010-10-01 17:00:28 +0200
commitb8824160707ba276e0fcaed8b68aa9e356b534ba (patch)
treef30c9dc3b48ec6bff5776e0b1f641747f7bb4f2c /client
parent1ef6d280d12a264f2a4a5aaa928d305afa38715b (diff)
downloadspice-b8824160707ba276e0fcaed8b68aa9e356b534ba.tar.gz
spice-b8824160707ba276e0fcaed8b68aa9e356b534ba.tar.xz
spice-b8824160707ba276e0fcaed8b68aa9e356b534ba.zip
Set clipboard_event before calling send_selection_notify
send_selection_notify used the clipboard_event, so set it before calling send_selection_notify.
Diffstat (limited to 'client')
-rw-r--r--client/x11/platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index f73f6513..98112331 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -2405,6 +2405,7 @@ static void root_win_proc(XEvent& event)
break;
}
+ clipboard_event = event;
uint32_t type = get_clipboard_type(selection_request->target);
if (!type) {
LOG_INFO("Unsupported selection type %s", atom_name(selection_request->target));
@@ -2415,7 +2416,6 @@ static void root_win_proc(XEvent& event)
send_selection_notify(selection_request->target);
break;
}
- clipboard_event = event;
clipboard_listener->on_clipboard_request(type);
break;
}