[Spice-devel] [PATCH spice 03/17] Set clipboard_event before calling send_selection_notify

Hans de Goede hdegoede at redhat.com
Mon Oct 4 03:34:54 PDT 2010


send_selection_notify used the clipboard_event, so set it before calling
send_selection_notify.
---
 client/x11/platform.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index f73f651..9811233 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;
     }
-- 
1.7.2.2



More information about the Spice-devel mailing list