winex11.drv: Fix compilation when XFixes is not present.

Sebastian Lackner sebastian at fds-team.de
Mon May 29 14:45:35 CDT 2017


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/winex11.drv/clipboard.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index 3da40811794..8e6e05b8288 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -1954,21 +1954,21 @@ static BOOL wait_clipboard_mutex(void)
 
 
 /**************************************************************************
- *              handle_selection_notify_event
+ *              selection_notify_event
  *
  * Called when x11 clipboard content changes
  */
+#ifdef SONAME_LIBXFIXES
 static BOOL selection_notify_event( HWND hwnd, XEvent *event )
 {
-#ifdef SONAME_LIBXFIXES
     XFixesSelectionNotifyEvent *req = (XFixesSelectionNotifyEvent*)event;
 
     if (!is_clipboard_owner) return FALSE;
     if (req->owner == selection_window) return FALSE;
     request_selection_contents( req->display, TRUE );
     return FALSE;
-#endif
 }
+#endif
 
 /**************************************************************************
  *		xfixes_init
-- 
2.12.2



More information about the wine-patches mailing list