hw/xwin: Remove g_fClipboardLaunched, it's value is identical to g_fClipboardStarted
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
42d1381082
commit
ab55746c1b
|
@ -56,7 +56,6 @@ int winProcSetSelectionOwner(ClientPtr /* client */ );
|
||||||
extern winDispatchProcPtr winProcSetSelectionOwnerOrig;
|
extern winDispatchProcPtr winProcSetSelectionOwnerOrig;
|
||||||
extern Bool g_fClipboard;
|
extern Bool g_fClipboard;
|
||||||
extern HWND g_hwndClipboard;
|
extern HWND g_hwndClipboard;
|
||||||
extern Bool g_fClipboardLaunched;
|
|
||||||
extern Bool g_fClipboardStarted;
|
extern Bool g_fClipboardStarted;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -78,13 +77,11 @@ winClipboardThreadProc(void *arg)
|
||||||
++clipboardRestarts;
|
++clipboardRestarts;
|
||||||
|
|
||||||
/* Flag that clipboard client has been launched */
|
/* Flag that clipboard client has been launched */
|
||||||
g_fClipboardLaunched = TRUE;
|
|
||||||
g_fClipboardStarted = TRUE;
|
g_fClipboardStarted = TRUE;
|
||||||
|
|
||||||
winClipboardProc(arg);
|
winClipboardProc(arg);
|
||||||
|
|
||||||
/* Flag that clipboard client has stopped */
|
/* Flag that clipboard client has stopped */
|
||||||
g_fClipboardLaunched = FALSE;
|
|
||||||
g_fClipboardStarted = FALSE;
|
g_fClipboardStarted = FALSE;
|
||||||
|
|
||||||
/* checking if we need to restart */
|
/* checking if we need to restart */
|
||||||
|
@ -131,7 +128,7 @@ void
|
||||||
winClipboardShutdown(void)
|
winClipboardShutdown(void)
|
||||||
{
|
{
|
||||||
/* Close down clipboard resources */
|
/* Close down clipboard resources */
|
||||||
if (g_fClipboard && g_fClipboardLaunched && g_fClipboardStarted) {
|
if (g_fClipboard && g_fClipboardStarted) {
|
||||||
/* Synchronously destroy the clipboard window */
|
/* Synchronously destroy the clipboard window */
|
||||||
if (g_hwndClipboard != NULL) {
|
if (g_hwndClipboard != NULL) {
|
||||||
SendMessage(g_hwndClipboard, WM_DESTROY, 0, 0);
|
SendMessage(g_hwndClipboard, WM_DESTROY, 0, 0);
|
||||||
|
@ -143,7 +140,6 @@ winClipboardShutdown(void)
|
||||||
/* Wait for the clipboard thread to exit */
|
/* Wait for the clipboard thread to exit */
|
||||||
pthread_join(g_ptClipboardProc, NULL);
|
pthread_join(g_ptClipboardProc, NULL);
|
||||||
|
|
||||||
g_fClipboardLaunched = FALSE;
|
|
||||||
g_fClipboardStarted = FALSE;
|
g_fClipboardStarted = FALSE;
|
||||||
|
|
||||||
winDebug("winClipboardShutdown - Clipboard thread has exited.\n");
|
winDebug("winClipboardShutdown - Clipboard thread has exited.\n");
|
||||||
|
|
|
@ -94,7 +94,6 @@ winDispatchProcPtr winProcSetSelectionOwnerOrig = NULL;
|
||||||
|
|
||||||
Bool g_fUnicodeClipboard = TRUE;
|
Bool g_fUnicodeClipboard = TRUE;
|
||||||
Bool g_fClipboard = TRUE;
|
Bool g_fClipboard = TRUE;
|
||||||
Bool g_fClipboardLaunched = FALSE;
|
|
||||||
Bool g_fClipboardStarted = FALSE;
|
Bool g_fClipboardStarted = FALSE;
|
||||||
HWND g_hwndClipboard = NULL;
|
HWND g_hwndClipboard = NULL;
|
||||||
void *g_pClipboardDisplay = NULL;
|
void *g_pClipboardDisplay = NULL;
|
||||||
|
|
Loading…
Reference in New Issue