xwin: remove always true/set XWIN_CLIPBOARD conditional/define
v2: drop trailing endif (Jon) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
1ef6569225
commit
9d00f6190a
|
@ -2193,7 +2193,6 @@ fi
|
||||||
AM_CONDITIONAL(XWIN, [test "x$XWIN" = xyes])
|
AM_CONDITIONAL(XWIN, [test "x$XWIN" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_MULTIWINDOW, [test "x$XWIN" = xyes])
|
AM_CONDITIONAL(XWIN_MULTIWINDOW, [test "x$XWIN" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_MULTIWINDOWEXTWM, [test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes])
|
AM_CONDITIONAL(XWIN_MULTIWINDOWEXTWM, [test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_CLIPBOARD, [test "x$XWIN" = xyes])
|
|
||||||
AM_CONDITIONAL(XWIN_GLX_WINDOWS, [test "x$XWIN" = xyes && test "x$GLX" = xyes])
|
AM_CONDITIONAL(XWIN_GLX_WINDOWS, [test "x$XWIN" = xyes && test "x$GLX" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_WINDOWS_DRI, [test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes])
|
AM_CONDITIONAL(XWIN_WINDOWS_DRI, [test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_RANDR, [test "x$XWIN" = xyes])
|
AM_CONDITIONAL(XWIN_RANDR, [test "x$XWIN" = xyes])
|
||||||
|
|
|
@ -37,9 +37,7 @@
|
||||||
* Local function prototypes
|
* Local function prototypes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
int winProcEstablishConnection(ClientPtr /* client */ );
|
int winProcEstablishConnection(ClientPtr /* client */ );
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local global declarations
|
* Local global declarations
|
||||||
|
@ -109,7 +107,6 @@ InitInput(int argc, char *argv[])
|
||||||
winDebug("InitInput\n");
|
winDebug("InitInput\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/*
|
/*
|
||||||
* Wrap some functions at every generation of the server.
|
* Wrap some functions at every generation of the server.
|
||||||
*/
|
*/
|
||||||
|
@ -117,7 +114,6 @@ InitInput(int argc, char *argv[])
|
||||||
winProcEstablishConnectionOrig = InitialVector[2];
|
winProcEstablishConnectionOrig = InitialVector[2];
|
||||||
InitialVector[2] = winProcEstablishConnection;
|
InitialVector[2] = winProcEstablishConnection;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (AllocDevicePair(serverClient, "Windows",
|
if (AllocDevicePair(serverClient, "Windows",
|
||||||
&g_pwinPointer, &g_pwinKeyboard,
|
&g_pwinPointer, &g_pwinKeyboard,
|
||||||
|
|
|
@ -35,9 +35,7 @@ from The Open Group.
|
||||||
#include "winmsg.h"
|
#include "winmsg.h"
|
||||||
#include "winconfig.h"
|
#include "winconfig.h"
|
||||||
#include "winprefs.h"
|
#include "winprefs.h"
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
#include "X11/Xlocale.h"
|
#include "X11/Xlocale.h"
|
||||||
#endif
|
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
#include "dpmsproc.h"
|
#include "dpmsproc.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -152,9 +150,7 @@ ddxBeforeReset(void)
|
||||||
{
|
{
|
||||||
winDebug("ddxBeforeReset - Hello\n");
|
winDebug("ddxBeforeReset - Hello\n");
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
winClipboardShutdown();
|
winClipboardShutdown();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -718,10 +714,8 @@ winUseMsg(void)
|
||||||
ErrorF(EXECUTABLE_NAME " Device Dependent Usage:\n");
|
ErrorF(EXECUTABLE_NAME " Device Dependent Usage:\n");
|
||||||
ErrorF("\n");
|
ErrorF("\n");
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
ErrorF("-[no]clipboard\n"
|
ErrorF("-[no]clipboard\n"
|
||||||
"\tEnable [disable] the clipboard integration. Default is enabled.\n");
|
"\tEnable [disable] the clipboard integration. Default is enabled.\n");
|
||||||
#endif
|
|
||||||
|
|
||||||
ErrorF("-clipupdates num_boxes\n"
|
ErrorF("-clipupdates num_boxes\n"
|
||||||
"\tUse a clipping region to constrain shadow update blits to\n"
|
"\tUse a clipping region to constrain shadow update blits to\n"
|
||||||
|
@ -806,14 +800,12 @@ winUseMsg(void)
|
||||||
"\tDo not draw a window border, title bar, etc. Windowed\n"
|
"\tDo not draw a window border, title bar, etc. Windowed\n"
|
||||||
"\tmode only.\n");
|
"\tmode only.\n");
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
ErrorF("-nounicodeclipboard\n"
|
ErrorF("-nounicodeclipboard\n"
|
||||||
"\tDo not use Unicode clipboard even if on a NT-based platform.\n");
|
"\tDo not use Unicode clipboard even if on a NT-based platform.\n");
|
||||||
|
|
||||||
ErrorF("-[no]primary\n"
|
ErrorF("-[no]primary\n"
|
||||||
"\tWhen clipboard integration is enabled, map the X11 PRIMARY selection\n"
|
"\tWhen clipboard integration is enabled, map the X11 PRIMARY selection\n"
|
||||||
"\tto the Windows clipboard. Default is enabled.\n");
|
"\tto the Windows clipboard. Default is enabled.\n");
|
||||||
#endif
|
|
||||||
|
|
||||||
ErrorF("-refresh rate_in_Hz\n"
|
ErrorF("-refresh rate_in_Hz\n"
|
||||||
"\tSpecify an optional refresh rate to use in fullscreen mode\n"
|
"\tSpecify an optional refresh rate to use in fullscreen mode\n"
|
||||||
|
@ -1029,8 +1021,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
|
|
||||||
/* Generate a cookie used by internal clients for authorization */
|
/* Generate a cookie used by internal clients for authorization */
|
||||||
if (g_fXdmcpEnabled || g_fAuthEnabled)
|
if (g_fXdmcpEnabled || g_fAuthEnabled)
|
||||||
winGenerateAuthorization();
|
winGenerateAuthorization();
|
||||||
|
@ -1043,7 +1033,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||||
*/
|
*/
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CYGDEBUG || YES
|
#if CYGDEBUG || YES
|
||||||
winDebug("InitOutput - Returning.\n");
|
winDebug("InitOutput - Returning.\n");
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
bin_PROGRAMS = XWin
|
bin_PROGRAMS = XWin
|
||||||
|
|
||||||
if XWIN_CLIPBOARD
|
|
||||||
SRCS_CLIPBOARD = \
|
SRCS_CLIPBOARD = \
|
||||||
winclipboardinit.c \
|
winclipboardinit.c \
|
||||||
winclipboardwrappers.c
|
winclipboardwrappers.c
|
||||||
DEFS_CLIPBOARD = -DXWIN_CLIPBOARD
|
|
||||||
CLIPBOARD_LIBS = $(top_builddir)/hw/xwin/winclipboard/libXWinclipboard.la
|
CLIPBOARD_LIBS = $(top_builddir)/hw/xwin/winclipboard/libXWinclipboard.la
|
||||||
endif
|
|
||||||
|
|
||||||
if XWIN_GLX_WINDOWS
|
if XWIN_GLX_WINDOWS
|
||||||
GLX_DIR =
|
GLX_DIR =
|
||||||
|
@ -115,7 +112,7 @@ SRCS = InitInput.c \
|
||||||
$(SRCS_PRIMARYFB) \
|
$(SRCS_PRIMARYFB) \
|
||||||
$(SRCS_RANDR)
|
$(SRCS_RANDR)
|
||||||
|
|
||||||
DEFS = $(DEFS_CLIPBOARD) \
|
DEFS = \
|
||||||
$(DEFS_GLX_WINDOWS) \
|
$(DEFS_GLX_WINDOWS) \
|
||||||
$(DEFS_MULTIWINDOW) \
|
$(DEFS_MULTIWINDOW) \
|
||||||
$(DEFS_MULTIWINDOWEXTWM) \
|
$(DEFS_MULTIWINDOWEXTWM) \
|
||||||
|
|
|
@ -18,7 +18,6 @@ xwin_c_args = []
|
||||||
xwin_c_args += '-DHAVE_XWIN_CONFIG_H'
|
xwin_c_args += '-DHAVE_XWIN_CONFIG_H'
|
||||||
xwin_c_args += '-Wno-bad-function-cast'
|
xwin_c_args += '-Wno-bad-function-cast'
|
||||||
# XXX: these conditionals are always on and can be removed
|
# XXX: these conditionals are always on and can be removed
|
||||||
xwin_c_args += '-DXWIN_CLIPBOARD'
|
|
||||||
xwin_c_args += '-DXWIN_MULTIWINDOW'
|
xwin_c_args += '-DXWIN_MULTIWINDOW'
|
||||||
xwin_c_args += '-DXWIN_RANDR'
|
xwin_c_args += '-DXWIN_RANDR'
|
||||||
|
|
||||||
|
|
|
@ -127,11 +127,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if defined(XWIN_MULTIWINDOWEXTWM) || defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
#define HANDLE void *
|
#define HANDLE void *
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#undef HANDLE
|
#undef HANDLE
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
@ -488,11 +486,9 @@ typedef struct _winPrivScreenRec {
|
||||||
Bool fRootWindowShown;
|
Bool fRootWindowShown;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Privates used for any module running in a seperate thread */
|
/* Privates used for any module running in a seperate thread */
|
||||||
pthread_mutex_t pmServerStarted;
|
pthread_mutex_t pmServerStarted;
|
||||||
Bool fServerStarted;
|
Bool fServerStarted;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Engine specific functions */
|
/* Engine specific functions */
|
||||||
winAllocateFBProcPtr pwinAllocateFB;
|
winAllocateFBProcPtr pwinAllocateFB;
|
||||||
|
@ -709,11 +705,9 @@ Bool
|
||||||
* winauth.c
|
* winauth.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
Bool
|
Bool
|
||||||
winGenerateAuthorization(void);
|
winGenerateAuthorization(void);
|
||||||
void winSetAuthorization(void);
|
void winSetAuthorization(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* winblock.c
|
* winblock.c
|
||||||
|
@ -723,7 +717,6 @@ void
|
||||||
|
|
||||||
winBlockHandler(ScreenPtr pScreen, void *pTimeout);
|
winBlockHandler(ScreenPtr pScreen, void *pTimeout);
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/*
|
/*
|
||||||
* winclipboardinit.c
|
* winclipboardinit.c
|
||||||
*/
|
*/
|
||||||
|
@ -733,7 +726,6 @@ Bool
|
||||||
|
|
||||||
void
|
void
|
||||||
winClipboardShutdown(void);
|
winClipboardShutdown(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wincmap.c
|
* wincmap.c
|
||||||
|
|
|
@ -38,9 +38,7 @@
|
||||||
void
|
void
|
||||||
winBlockHandler(ScreenPtr pScreen, void *pTimeout)
|
winBlockHandler(ScreenPtr pScreen, void *pTimeout)
|
||||||
{
|
{
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAS_DEVWINDOWS
|
#ifndef HAS_DEVWINDOWS
|
||||||
struct timeval **tvp = pTimeout;
|
struct timeval **tvp = pTimeout;
|
||||||
|
@ -64,7 +62,6 @@ winBlockHandler(ScreenPtr pScreen, void *pTimeout)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Signal threaded modules to begin */
|
/* Signal threaded modules to begin */
|
||||||
if (pScreenPriv != NULL && !pScreenPriv->fServerStarted) {
|
if (pScreenPriv != NULL && !pScreenPriv->fServerStarted) {
|
||||||
int iReturn;
|
int iReturn;
|
||||||
|
@ -84,7 +81,6 @@ winBlockHandler(ScreenPtr pScreen, void *pTimeout)
|
||||||
winDebug("winBlockHandler - pthread_mutex_unlock () returned\n");
|
winDebug("winBlockHandler - pthread_mutex_unlock () returned\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
At least one X client has asked to suspend the screensaver, so
|
At least one X client has asked to suspend the screensaver, so
|
||||||
|
|
|
@ -241,10 +241,8 @@ winDisplayExitDialog(winPrivScreenPtr pScreenPriv)
|
||||||
if (pScreenPriv->pScreenInfo->fMultiWindow)
|
if (pScreenPriv->pScreenInfo->fMultiWindow)
|
||||||
liveClients -= 2; /* multiwindow window manager & XMsgProc */
|
liveClients -= 2; /* multiwindow window manager & XMsgProc */
|
||||||
#endif
|
#endif
|
||||||
#if defined(XWIN_CLIPBOARD)
|
|
||||||
if (g_fClipboardStarted)
|
if (g_fClipboardStarted)
|
||||||
liveClients--; /* clipboard manager */
|
liveClients--; /* clipboard manager */
|
||||||
#endif
|
|
||||||
|
|
||||||
/* A user reported that this sometimes drops below zero. just eye-candy. */
|
/* A user reported that this sometimes drops below zero. just eye-candy. */
|
||||||
if (liveClients < 0)
|
if (liveClients < 0)
|
||||||
|
|
|
@ -39,22 +39,18 @@
|
||||||
void
|
void
|
||||||
OsVendorVErrorF(const char *pszFormat, va_list va_args)
|
OsVendorVErrorF(const char *pszFormat, va_list va_args)
|
||||||
{
|
{
|
||||||
#if defined(XWIN_CLIPBOARD) || defined (XWIN_MULTIWINDOW)
|
|
||||||
/* make sure the clipboard and multiwindow threads do not interfere the
|
/* make sure the clipboard and multiwindow threads do not interfere the
|
||||||
* main thread */
|
* main thread */
|
||||||
static pthread_mutex_t s_pmPrinting = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t s_pmPrinting = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
/* Lock the printing mutex */
|
/* Lock the printing mutex */
|
||||||
pthread_mutex_lock(&s_pmPrinting);
|
pthread_mutex_lock(&s_pmPrinting);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Print the error message to a log file, could be stderr */
|
/* Print the error message to a log file, could be stderr */
|
||||||
LogVWrite(0, pszFormat, va_args);
|
LogVWrite(0, pszFormat, va_args);
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined (XWIN_MULTIWINDOW)
|
|
||||||
/* Unlock the printing mutex */
|
/* Unlock the printing mutex */
|
||||||
pthread_mutex_unlock(&s_pmPrinting);
|
pthread_mutex_unlock(&s_pmPrinting);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,6 @@ Bool g_fNativeGl = TRUE;
|
||||||
Bool g_fHostInTitle = TRUE;
|
Bool g_fHostInTitle = TRUE;
|
||||||
pthread_mutex_t g_pmTerminating = PTHREAD_MUTEX_INITIALIZER;
|
pthread_mutex_t g_pmTerminating = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/*
|
/*
|
||||||
* Wrapped DIX functions
|
* Wrapped DIX functions
|
||||||
*/
|
*/
|
||||||
|
@ -93,7 +92,6 @@ winDispatchProcPtr winProcEstablishConnectionOrig = NULL;
|
||||||
Bool g_fUnicodeClipboard = TRUE;
|
Bool g_fUnicodeClipboard = TRUE;
|
||||||
Bool g_fClipboard = TRUE;
|
Bool g_fClipboard = TRUE;
|
||||||
Bool g_fClipboardStarted = FALSE;
|
Bool g_fClipboardStarted = FALSE;
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Re-initialize global variables that are invalidated
|
* Re-initialize global variables that are invalidated
|
||||||
|
|
|
@ -62,8 +62,6 @@ extern HWND g_hDlgAbout;
|
||||||
extern Bool g_fSoftwareCursor;
|
extern Bool g_fSoftwareCursor;
|
||||||
extern Bool g_fCursor;
|
extern Bool g_fCursor;
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
|
|
||||||
/* Typedef for DIX wrapper functions */
|
/* Typedef for DIX wrapper functions */
|
||||||
typedef int (*winDispatchProcPtr) (ClientPtr);
|
typedef int (*winDispatchProcPtr) (ClientPtr);
|
||||||
|
|
||||||
|
@ -71,7 +69,6 @@ typedef int (*winDispatchProcPtr) (ClientPtr);
|
||||||
* Wrapped DIX functions
|
* Wrapped DIX functions
|
||||||
*/
|
*/
|
||||||
extern winDispatchProcPtr winProcEstablishConnectionOrig;
|
extern winDispatchProcPtr winProcEstablishConnectionOrig;
|
||||||
#endif
|
|
||||||
extern Bool g_fUnicodeClipboard;
|
extern Bool g_fUnicodeClipboard;
|
||||||
extern Bool g_fClipboard;
|
extern Bool g_fClipboard;
|
||||||
extern Bool g_fClipboardStarted;
|
extern Bool g_fClipboardStarted;
|
||||||
|
|
|
@ -41,9 +41,7 @@ from The Open Group.
|
||||||
#include "winmsg.h"
|
#include "winmsg.h"
|
||||||
#include "winmonitors.h"
|
#include "winmonitors.h"
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
#include "winclipboard/winclipboard.h"
|
#include "winclipboard/winclipboard.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Function prototypes
|
* Function prototypes
|
||||||
|
@ -690,7 +688,6 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/*
|
/*
|
||||||
* Look for the '-clipboard' argument
|
* Look for the '-clipboard' argument
|
||||||
*/
|
*/
|
||||||
|
@ -731,7 +728,6 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Look for the '-ignoreinput' argument
|
* Look for the '-ignoreinput' argument
|
||||||
|
@ -1022,7 +1018,6 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/*
|
/*
|
||||||
* Look for the '-nounicodeclipboard' argument
|
* Look for the '-nounicodeclipboard' argument
|
||||||
*/
|
*/
|
||||||
|
@ -1031,7 +1026,6 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
/* Indicate that we have processed the argument */
|
/* Indicate that we have processed the argument */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (IS_OPTION("-xkbrules")) {
|
if (IS_OPTION("-xkbrules")) {
|
||||||
CHECK_ARGS(1);
|
CHECK_ARGS(1);
|
||||||
|
|
|
@ -264,9 +264,7 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||||
VisualPtr pVisual = NULL;
|
VisualPtr pVisual = NULL;
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
int iReturn;
|
int iReturn;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Create framebuffer */
|
/* Create framebuffer */
|
||||||
if (!(*pScreenPriv->pwinInitScreen) (pScreen)) {
|
if (!(*pScreenPriv->pwinInitScreen) (pScreen)) {
|
||||||
|
@ -504,7 +502,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
pScreenPriv->CloseScreen = pScreen->CloseScreen;
|
pScreenPriv->CloseScreen = pScreen->CloseScreen;
|
||||||
pScreen->CloseScreen = pScreenPriv->pwinCloseScreen;
|
pScreen->CloseScreen = pScreenPriv->pwinCloseScreen;
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Create a mutex for modules in separate threads to wait for */
|
/* Create a mutex for modules in separate threads to wait for */
|
||||||
iReturn = pthread_mutex_init(&pScreenPriv->pmServerStarted, NULL);
|
iReturn = pthread_mutex_init(&pScreenPriv->pmServerStarted, NULL);
|
||||||
if (iReturn != 0) {
|
if (iReturn != 0) {
|
||||||
|
@ -523,7 +520,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
|
|
||||||
/* Set the ServerStarted flag to false */
|
/* Set the ServerStarted flag to false */
|
||||||
pScreenPriv->fServerStarted = FALSE;
|
pScreenPriv->fServerStarted = FALSE;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
pScreenPriv->fRestacking = FALSE;
|
pScreenPriv->fRestacking = FALSE;
|
||||||
|
|
|
@ -697,10 +697,8 @@ winCloseScreenShadowDDNL(ScreenPtr pScreen)
|
||||||
pScreenPriv->hwndScreen = NULL;
|
pScreenPriv->hwndScreen = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Destroy the thread startup mutex */
|
/* Destroy the thread startup mutex */
|
||||||
pthread_mutex_destroy(&pScreenPriv->pmServerStarted);
|
pthread_mutex_destroy(&pScreenPriv->pmServerStarted);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Kill our screeninfo's pointer to the screen */
|
/* Kill our screeninfo's pointer to the screen */
|
||||||
pScreenInfo->pScreen = NULL;
|
pScreenInfo->pScreen = NULL;
|
||||||
|
|
|
@ -618,10 +618,8 @@ winCloseScreenShadowGDI(ScreenPtr pScreen)
|
||||||
pScreenPriv->hwndScreen = NULL;
|
pScreenPriv->hwndScreen = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Destroy the thread startup mutex */
|
/* Destroy the thread startup mutex */
|
||||||
pthread_mutex_destroy(&pScreenPriv->pmServerStarted);
|
pthread_mutex_destroy(&pScreenPriv->pmServerStarted);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Invalidate our screeninfo's pointer to the screen */
|
/* Invalidate our screeninfo's pointer to the screen */
|
||||||
pScreenInfo->pScreen = NULL;
|
pScreenInfo->pScreen = NULL;
|
||||||
|
|
|
@ -36,9 +36,7 @@
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include "winprefs.h"
|
#include "winprefs.h"
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
#include "winclipboard/winclipboard.h"
|
#include "winclipboard/winclipboard.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the tray icon
|
* Initialize the tray icon
|
||||||
|
@ -174,7 +172,6 @@ winHandleIconMessage(HWND hwnd, UINT message,
|
||||||
RemoveMenu(hmenuTray, ID_APP_HIDE_ROOT, MF_BYCOMMAND);
|
RemoveMenu(hmenuTray, ID_APP_HIDE_ROOT, MF_BYCOMMAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
if (g_fClipboard) {
|
if (g_fClipboard) {
|
||||||
/* Set menu state to indicate if 'Monitor Primary' is enabled or not */
|
/* Set menu state to indicate if 'Monitor Primary' is enabled or not */
|
||||||
MENUITEMINFO mii = { 0 };
|
MENUITEMINFO mii = { 0 };
|
||||||
|
@ -187,7 +184,6 @@ winHandleIconMessage(HWND hwnd, UINT message,
|
||||||
/* Remove 'Monitor Primary' menu item */
|
/* Remove 'Monitor Primary' menu item */
|
||||||
RemoveMenu(hmenuTray, ID_APP_MONITOR_PRIMARY, MF_BYCOMMAND);
|
RemoveMenu(hmenuTray, ID_APP_MONITOR_PRIMARY, MF_BYCOMMAND);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
SetupRootMenu(hmenuTray);
|
SetupRootMenu(hmenuTray);
|
||||||
|
|
||||||
|
|
|
@ -42,9 +42,7 @@
|
||||||
#include "winmsg.h"
|
#include "winmsg.h"
|
||||||
#include "winmonitors.h"
|
#include "winmonitors.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
#include "winclipboard/winclipboard.h"
|
#include "winclipboard/winclipboard.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Global variables
|
* Global variables
|
||||||
|
@ -1168,10 +1166,8 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
ShowCursor(TRUE);
|
ShowCursor(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
/* Make sure the clipboard chain is ok. */
|
/* Make sure the clipboard chain is ok. */
|
||||||
winFixClipboardChain();
|
winFixClipboardChain();
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Call engine specific screen activation/deactivation function */
|
/* Call engine specific screen activation/deactivation function */
|
||||||
(*s_pScreenPriv->pwinActivateApp) (s_pScreen);
|
(*s_pScreenPriv->pwinActivateApp) (s_pScreen);
|
||||||
|
@ -1203,11 +1199,9 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XWIN_CLIPBOARD
|
|
||||||
case ID_APP_MONITOR_PRIMARY:
|
case ID_APP_MONITOR_PRIMARY:
|
||||||
fPrimarySelection = !fPrimarySelection;
|
fPrimarySelection = !fPrimarySelection;
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
case ID_APP_ABOUT:
|
case ID_APP_ABOUT:
|
||||||
/* Display the About box */
|
/* Display the About box */
|
||||||
|
|
Loading…
Reference in New Issue