From 10c7b1d5bacbb84626a19d6de93175c8784b9d1e Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 23 Sep 2009 20:47:15 +0000 Subject: Solved endless looping when clipboardthread is restarted due to winioerrhandler. --- xorg-server/hw/xwin/winclipboardthread.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xorg-server/hw/xwin') diff --git a/xorg-server/hw/xwin/winclipboardthread.c b/xorg-server/hw/xwin/winclipboardthread.c index d564876eb..edade899d 100644 --- a/xorg-server/hw/xwin/winclipboardthread.c +++ b/xorg-server/hw/xwin/winclipboardthread.c @@ -133,6 +133,12 @@ winClipboardProc (void *pvNotUsed) goto thread_errorexit; } + /* Create Windows messaging window */ + hwnd = winClipboardCreateMessagingWindow (); + + /* Save copy of HWND in screen privates */ + g_hwndClipboard = hwnd; + /* Set jump point for Error exits */ iReturn = setjmp (g_jmpEntry); @@ -266,12 +272,6 @@ winClipboardProc (void *pvNotUsed) /* Save the window in the screen privates */ g_iClipboardWindow = iWindow; - /* Create Windows messaging window */ - hwnd = winClipboardCreateMessagingWindow (); - - /* Save copy of HWND in screen privates */ - g_hwndClipboard = hwnd; - /* Assert ownership of selections if Win32 clipboard is owned */ if (NULL != GetClipboardOwner ()) { -- cgit v1.2.3