winex11.drv: Select property change events on selection request windows.

Vincent Povirk madewokherd at gmail.com
Thu Jan 3 17:03:59 CST 2013


-------------- next part --------------
From eb93ea5011ad8f2cd1b7ed70bdc9c0af2240c12b Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 3 Jan 2013 16:59:14 -0600
Subject: [PATCH 1/2] winex11.drv: Select property change events on selection
 request windows.

We need to get PropertyNotify events to support the INCR protocol.
---
 dlls/winex11.drv/clipboard.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index e2f5b12..1da3a22 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -262,7 +262,11 @@ static Window thread_selection_wnd(void)
         w = XCreateWindow(thread_data->display, root_window, 0, 0, 1, 1, 0, CopyFromParent,
                           InputOnly, CopyFromParent, 0, NULL);
         if (w)
+        {
             thread_data->selection_wnd = w;
+
+            XSelectInput(thread_data->display, w, PropertyChangeMask);
+        }
         else
             FIXME("Failed to create window. Fetching selection data will fail.\n");
     }
-- 
1.8.0


More information about the wine-patches mailing list