summaryrefslogtreecommitdiff
path: root/hw/xwin/winclipboardinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/winclipboardinit.c')
-rw-r--r--hw/xwin/winclipboardinit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/xwin/winclipboardinit.c b/hw/xwin/winclipboardinit.c
index 8aef8fe02..814899f8e 100644
--- a/hw/xwin/winclipboardinit.c
+++ b/hw/xwin/winclipboardinit.c
@@ -38,6 +38,7 @@
#include "win.h"
#include "winclipboard/winclipboard.h"
#include "windisplay.h"
+#include "winauth.h"
#define WIN_CLIPBOARD_RETRIES 40
#define WIN_CLIPBOARD_DELAY 1
@@ -55,6 +56,7 @@ static void *
winClipboardThreadProc(void *arg)
{
char szDisplay[512];
+ xcb_auth_info_t *auth_info;
int clipboardRestarts = 0;
while (1)
@@ -63,9 +65,6 @@ winClipboardThreadProc(void *arg)
++clipboardRestarts;
- /* Use our generated cookie for authentication */
- winSetAuthorization();
-
/* Setup the display connection string */
/*
* NOTE: Always connect to screen 0 since we require that screen
@@ -82,7 +81,10 @@ winClipboardThreadProc(void *arg)
/* Flag that clipboard client has been launched */
g_fClipboardStarted = TRUE;
- fShutdown = winClipboardProc(g_fUnicodeClipboard, szDisplay);
+ /* Use our generated cookie for authentication */
+ auth_info = winGetXcbAuthInfo();
+
+ fShutdown = winClipboardProc(szDisplay, auth_info);
/* Flag that clipboard client has stopped */
g_fClipboardStarted = FALSE;