hw/xwin: Remove obsolete WIN_XEVENTS_SHUTDOWN
Remove obsolete WIN_XEVENTS_SHUTDOWN. This event is never generated. (I think the idea was to listen for WM_DELETE_WINDOW, but that's not a very useful thing to do for a hidden window.) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
2663203cd6
commit
4bc375aa2f
|
@ -66,7 +66,6 @@
|
|||
#define WIN_JMP_ERROR_IO 2
|
||||
#define WIN_LOCAL_PROPERTY "CYGX_CUT_BUFFER"
|
||||
#define WIN_XEVENTS_SUCCESS 0
|
||||
#define WIN_XEVENTS_SHUTDOWN 1
|
||||
#define WIN_XEVENTS_CONVERT 2
|
||||
#define WIN_XEVENTS_NOTIFY 3
|
||||
#define WIN_CLIPBOARD_RETRIES 40
|
||||
|
|
|
@ -325,14 +325,7 @@ winClipboardProc(void *pvNotUsed)
|
|||
/* Branch on which descriptor became active */
|
||||
if (FD_ISSET(iConnectionNumber, &fdsRead)) {
|
||||
/* Process X events */
|
||||
/* Exit when we see that server is shutting down */
|
||||
iReturn = winClipboardFlushXEvents(hwnd,
|
||||
iWindow, pDisplay, fUseUnicode);
|
||||
if (WIN_XEVENTS_SHUTDOWN == iReturn) {
|
||||
ErrorF("winClipboardProc - winClipboardFlushXEvents "
|
||||
"trapped shutdown event, exiting main loop.\n");
|
||||
break;
|
||||
}
|
||||
winClipboardFlushXEvents(hwnd, iWindow, pDisplay, fUseUnicode);
|
||||
}
|
||||
|
||||
#ifdef HAS_DEVWINDOWS
|
||||
|
|
Loading…
Reference in New Issue