xwin: remove always true/set XWIN_MULTIWINDOW 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
9d00f6190a
commit
8f1a200d0b
|
@ -2191,7 +2191,6 @@ dnl XWin requires OpenGL spec files in order to generate wrapper code for native
|
||||||
|
|
||||||
fi
|
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_MULTIWINDOWEXTWM, [test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes])
|
AM_CONDITIONAL(XWIN_MULTIWINDOWEXTWM, [test "x$XWIN" = xyes && test "x$WINDOWSWM" = 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])
|
||||||
|
|
|
@ -190,13 +190,11 @@ ddxGiveUp(enum ExitCode error)
|
||||||
winDeleteNotifyIcon(winGetScreenPriv(g_ScreenInfo[i].pScreen));
|
winDeleteNotifyIcon(winGetScreenPriv(g_ScreenInfo[i].pScreen));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Unload libraries for taskbar grouping */
|
/* Unload libraries for taskbar grouping */
|
||||||
winPropertyStoreDestroy();
|
winPropertyStoreDestroy();
|
||||||
|
|
||||||
/* Notify the worker threads we're exiting */
|
/* Notify the worker threads we're exiting */
|
||||||
winDeinitMultiWindowWM();
|
winDeinitMultiWindowWM();
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAS_DEVWINDOWS
|
#ifdef HAS_DEVWINDOWS
|
||||||
/* Close our handle to our message queue */
|
/* Close our handle to our message queue */
|
||||||
|
@ -787,9 +785,7 @@ winUseMsg(void)
|
||||||
"\tUse the entire virtual screen if multiple\n"
|
"\tUse the entire virtual screen if multiple\n"
|
||||||
"\tmonitors are present.\n");
|
"\tmonitors are present.\n");
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
ErrorF("-multiwindow\n" "\tRun the server in multi-window mode.\n");
|
ErrorF("-multiwindow\n" "\tRun the server in multi-window mode.\n");
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
ErrorF("-mwextwm\n"
|
ErrorF("-mwextwm\n"
|
||||||
|
@ -948,10 +944,8 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||||
|
|
||||||
/* Detect supported engines */
|
/* Detect supported engines */
|
||||||
winDetectSupportedEngines();
|
winDetectSupportedEngines();
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Load libraries for taskbar grouping */
|
/* Load libraries for taskbar grouping */
|
||||||
winPropertyStoreInit();
|
winPropertyStoreInit();
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Store the instance handle */
|
/* Store the instance handle */
|
||||||
g_hInstance = GetModuleHandle(NULL);
|
g_hInstance = GetModuleHandle(NULL);
|
||||||
|
|
|
@ -20,7 +20,6 @@ XWIN_GLX_LIBS += $(top_builddir)/hw/xwin/glx/libXwinGLX.la
|
||||||
XWIN_GLX_SYS_LIBS = -lopengl32
|
XWIN_GLX_SYS_LIBS = -lopengl32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XWIN_MULTIWINDOW
|
|
||||||
SRCS_MULTIWINDOW = \
|
SRCS_MULTIWINDOW = \
|
||||||
winmultiwindowshape.c \
|
winmultiwindowshape.c \
|
||||||
winmultiwindowwindow.c \
|
winmultiwindowwindow.c \
|
||||||
|
@ -28,9 +27,7 @@ SRCS_MULTIWINDOW = \
|
||||||
winmultiwindowwndproc.c \
|
winmultiwindowwndproc.c \
|
||||||
propertystore.h \
|
propertystore.h \
|
||||||
winSetAppUserModelID.c
|
winSetAppUserModelID.c
|
||||||
DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW
|
|
||||||
MULTIWINDOW_SYS_LIBS = -lshlwapi -lole32
|
MULTIWINDOW_SYS_LIBS = -lshlwapi -lole32
|
||||||
endif
|
|
||||||
|
|
||||||
if XWIN_MULTIWINDOWEXTWM
|
if XWIN_MULTIWINDOWEXTWM
|
||||||
SRCS_MULTIWINDOWEXTWM = \
|
SRCS_MULTIWINDOWEXTWM = \
|
||||||
|
@ -114,7 +111,6 @@ SRCS = InitInput.c \
|
||||||
|
|
||||||
DEFS = \
|
DEFS = \
|
||||||
$(DEFS_GLX_WINDOWS) \
|
$(DEFS_GLX_WINDOWS) \
|
||||||
$(DEFS_MULTIWINDOW) \
|
|
||||||
$(DEFS_MULTIWINDOWEXTWM) \
|
$(DEFS_MULTIWINDOWEXTWM) \
|
||||||
$(DEFS_NATIVEGDI) \
|
$(DEFS_NATIVEGDI) \
|
||||||
$(DEFS_PRIMARYFB) \
|
$(DEFS_PRIMARYFB) \
|
||||||
|
|
|
@ -20,10 +20,6 @@ endif
|
||||||
libnativeGLthunk_la_SOURCES = \
|
libnativeGLthunk_la_SOURCES = \
|
||||||
glthunk.c
|
glthunk.c
|
||||||
|
|
||||||
if XWIN_MULTIWINDOW
|
|
||||||
DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW
|
|
||||||
endif
|
|
||||||
|
|
||||||
if XWIN_MULTIWINDOWEXTWM
|
if XWIN_MULTIWINDOWEXTWM
|
||||||
DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
|
DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
|
||||||
endif
|
endif
|
||||||
|
@ -32,7 +28,9 @@ if XWIN_GLX_WINDOWS
|
||||||
DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
|
DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEFS = $(DEFS_MULTIWINDOW) $(DEFS_MULTIWINDOWEXTWM) $(DEFS_GLX_WINDOWS)
|
DEFS = \
|
||||||
|
$(DEFS_MULTIWINDOWEXTWM) \
|
||||||
|
$(DEFS_GLX_WINDOWS)
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/miext/rootless
|
AM_CPPFLAGS = -I$(top_srcdir)/miext/rootless
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,6 @@ endif
|
||||||
|
|
||||||
xwin_glx_c_args = []
|
xwin_glx_c_args = []
|
||||||
xwin_glx_c_args += '-DHAVE_XWIN_CONFIG_H'
|
xwin_glx_c_args += '-DHAVE_XWIN_CONFIG_H'
|
||||||
xwin_glx_c_args += '-DXWIN_MULTIWINDOW'
|
|
||||||
xwin_glx_c_args += '-DXWIN_GLX_WINDOWS'
|
xwin_glx_c_args += '-DXWIN_GLX_WINDOWS'
|
||||||
|
|
||||||
xwin_glx = static_library(
|
xwin_glx = static_library(
|
||||||
|
|
|
@ -39,7 +39,6 @@ winGetWindowInfo(WindowPtr pWin)
|
||||||
hwnd = pWinScreen->hwndScreen;
|
hwnd = pWinScreen->hwndScreen;
|
||||||
|
|
||||||
pScreenInfo = pWinScreen->pScreenInfo;
|
pScreenInfo = pWinScreen->pScreenInfo;
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* check for multiwindow mode */
|
/* check for multiwindow mode */
|
||||||
if (pScreenInfo->fMultiWindow) {
|
if (pScreenInfo->fMultiWindow) {
|
||||||
winWindowPriv(pWin);
|
winWindowPriv(pWin);
|
||||||
|
@ -64,7 +63,6 @@ winGetWindowInfo(WindowPtr pWin)
|
||||||
|
|
||||||
return hwnd;
|
return hwnd;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
/* check for multiwindow external wm mode */
|
/* check for multiwindow external wm mode */
|
||||||
if (pScreenInfo->fMWExtWM) {
|
if (pScreenInfo->fMWExtWM) {
|
||||||
|
@ -107,10 +105,8 @@ winCheckScreenAiglxIsSupported(ScreenPtr pScreen)
|
||||||
winPrivScreenPtr pWinScreen = winGetScreenPriv(pScreen);
|
winPrivScreenPtr pWinScreen = winGetScreenPriv(pScreen);
|
||||||
winScreenInfoPtr pScreenInfo = pWinScreen->pScreenInfo;
|
winScreenInfoPtr pScreenInfo = pWinScreen->pScreenInfo;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
if (pScreenInfo->fMWExtWM)
|
if (pScreenInfo->fMWExtWM)
|
||||||
|
|
|
@ -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_MULTIWINDOW'
|
|
||||||
xwin_c_args += '-DXWIN_RANDR'
|
xwin_c_args += '-DXWIN_RANDR'
|
||||||
|
|
||||||
srcs_windows = [
|
srcs_windows = [
|
||||||
|
|
|
@ -394,12 +394,8 @@ typedef struct {
|
||||||
Bool fMWExtWM;
|
Bool fMWExtWM;
|
||||||
#endif
|
#endif
|
||||||
Bool fRootless;
|
Bool fRootless;
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
Bool fMultiWindow;
|
Bool fMultiWindow;
|
||||||
#endif
|
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
Bool fMultiMonitorOverride;
|
Bool fMultiMonitorOverride;
|
||||||
#endif
|
|
||||||
Bool fMultipleMonitors;
|
Bool fMultipleMonitors;
|
||||||
Bool fLessPointer;
|
Bool fLessPointer;
|
||||||
winResizeMode iResizeMode;
|
winResizeMode iResizeMode;
|
||||||
|
@ -474,17 +470,13 @@ typedef struct _winPrivScreenRec {
|
||||||
Bool fRestacking;
|
Bool fRestacking;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Privates used by multi-window */
|
/* Privates used by multi-window */
|
||||||
pthread_t ptWMProc;
|
pthread_t ptWMProc;
|
||||||
pthread_t ptXMsgProc;
|
pthread_t ptXMsgProc;
|
||||||
void *pWMInfo;
|
void *pWMInfo;
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
/* Privates used by both multi-window and rootless */
|
/* Privates used by both multi-window and rootless */
|
||||||
Bool fRootWindowShown;
|
Bool fRootWindowShown;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* 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;
|
||||||
|
@ -924,7 +916,6 @@ Bool
|
||||||
void
|
void
|
||||||
winSetShapeRootless(WindowPtr pWindow, int kind);
|
winSetShapeRootless(WindowPtr pWindow, int kind);
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* winmultiwindowshape.c
|
* winmultiwindowshape.c
|
||||||
*/
|
*/
|
||||||
|
@ -937,9 +928,7 @@ void
|
||||||
|
|
||||||
void
|
void
|
||||||
winUpdateRgnMultiWindow(WindowPtr pWindow);
|
winUpdateRgnMultiWindow(WindowPtr pWindow);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* winmultiwindowwindow.c
|
* winmultiwindowwindow.c
|
||||||
*/
|
*/
|
||||||
|
@ -990,16 +979,13 @@ XID
|
||||||
|
|
||||||
int
|
int
|
||||||
winAdjustXWindow(WindowPtr pWin, HWND hwnd);
|
winAdjustXWindow(WindowPtr pWin, HWND hwnd);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* winmultiwindowwndproc.c
|
* winmultiwindowwndproc.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LRESULT CALLBACK
|
LRESULT CALLBACK
|
||||||
winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wintrayicon.c
|
* wintrayicon.c
|
||||||
|
|
|
@ -156,9 +156,7 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
&& !pScreenInfo->fMWExtWM
|
&& !pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
&& !pScreenInfo->fRootless
|
&& !pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
&& !pScreenInfo->fMultiWindow
|
&& !pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
/* Try to handle startup via run.exe. run.exe instructs Windows to
|
/* Try to handle startup via run.exe. run.exe instructs Windows to
|
||||||
* hide all created windows. Detect this case and make sure the
|
* hide all created windows. Detect this case and make sure the
|
||||||
|
@ -220,9 +218,7 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
|| pScreenInfo->fMWExtWM
|
|| pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|| pScreenInfo->fRootless
|
|| pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenInfo->fMultiWindow
|
|| pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
&& (pScreenInfo->iResizeMode == resizeWithScrollbars)) {
|
&& (pScreenInfo->iResizeMode == resizeWithScrollbars)) {
|
||||||
/* We cannot have scrollbars if we do not have a window border */
|
/* We cannot have scrollbars if we do not have a window border */
|
||||||
|
@ -243,9 +239,7 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
&& !pScreenInfo->fMWExtWM
|
&& !pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
&& !pScreenInfo->fRootless
|
&& !pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
&& !pScreenInfo->fMultiWindow
|
&& !pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug
|
winDebug
|
||||||
|
@ -293,9 +287,7 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
&& !pScreenInfo->fMWExtWM
|
&& !pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
&& !pScreenInfo->fMultiWindow
|
&& !pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
/* Trim window width to fit work area */
|
/* Trim window width to fit work area */
|
||||||
if (iWidth > (rcWorkArea.right - rcWorkArea.left))
|
if (iWidth > (rcWorkArea.right - rcWorkArea.left))
|
||||||
|
@ -430,13 +422,9 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
|| pScreenInfo->fMWExtWM
|
|| pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenInfo->fMultiWindow
|
|| pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
pScreenPriv->fRootWindowShown = FALSE;
|
pScreenPriv->fRootWindowShown = FALSE;
|
||||||
#endif
|
|
||||||
ShowWindow(*phwnd, SW_HIDE);
|
ShowWindow(*phwnd, SW_HIDE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -452,9 +440,7 @@ winCreateBoundingWindowWindowed(ScreenPtr pScreen)
|
||||||
&& !pScreenInfo->fMWExtWM
|
&& !pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
&& !pScreenInfo->fRootless
|
&& !pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
&& !pScreenInfo->fMultiWindow
|
&& !pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
if (!BringWindowToTop(*phwnd)) {
|
if (!BringWindowToTop(*phwnd)) {
|
||||||
ErrorF("winCreateBoundingWindowWindowed - BringWindowToTop () "
|
ErrorF("winCreateBoundingWindowWindowed - BringWindowToTop () "
|
||||||
|
|
|
@ -95,9 +95,7 @@ winPointerWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
|
||||||
*/
|
*/
|
||||||
if ((pScreenPriv->hwndScreen == GetForegroundWindow())
|
if ((pScreenPriv->hwndScreen == GetForegroundWindow())
|
||||||
|| pScreenPriv->pScreenInfo->fRootless
|
|| pScreenPriv->pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenPriv->pScreenInfo->fMultiWindow
|
|| pScreenPriv->pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
/* Get the client area coordinates */
|
/* Get the client area coordinates */
|
||||||
GetClientRect(pScreenPriv->hwndScreen, &rcClient);
|
GetClientRect(pScreenPriv->hwndScreen, &rcClient);
|
||||||
|
|
|
@ -201,18 +201,14 @@ winInitDialog(HWND hwndDlg)
|
||||||
0, 0, SWP_NOSIZE | SWP_FRAMECHANGED);
|
0, 0, SWP_NOSIZE | SWP_FRAMECHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (g_hIconX)
|
if (g_hIconX)
|
||||||
hIcon = g_hIconX;
|
hIcon = g_hIconX;
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
hIcon = LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_XWIN));
|
hIcon = LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_XWIN));
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (g_hSmallIconX)
|
if (g_hSmallIconX)
|
||||||
hIconSmall = g_hSmallIconX;
|
hIconSmall = g_hSmallIconX;
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
hIconSmall = LoadImage(g_hInstance,
|
hIconSmall = LoadImage(g_hInstance,
|
||||||
MAKEINTRESOURCE(IDI_XWIN), IMAGE_ICON,
|
MAKEINTRESOURCE(IDI_XWIN), IMAGE_ICON,
|
||||||
GetSystemMetrics(SM_CXSMICON),
|
GetSystemMetrics(SM_CXSMICON),
|
||||||
|
@ -236,11 +232,9 @@ winDisplayExitDialog(winPrivScreenPtr pScreenPriv)
|
||||||
for (i = 1; i < currentMaxClients; i++)
|
for (i = 1; i < currentMaxClients; i++)
|
||||||
if (clients[i] != NullClient)
|
if (clients[i] != NullClient)
|
||||||
liveClients++;
|
liveClients++;
|
||||||
#if defined(XWIN_MULTIWINDOW)
|
|
||||||
/* Count down server internal clients */
|
/* Count down server internal clients */
|
||||||
if (pScreenPriv->pScreenInfo->fMultiWindow)
|
if (pScreenPriv->pScreenInfo->fMultiWindow)
|
||||||
liveClients -= 2; /* multiwindow window manager & XMsgProc */
|
liveClients -= 2; /* multiwindow window manager & XMsgProc */
|
||||||
#endif
|
|
||||||
if (g_fClipboardStarted)
|
if (g_fClipboardStarted)
|
||||||
liveClients--; /* clipboard manager */
|
liveClients--; /* clipboard manager */
|
||||||
|
|
||||||
|
|
|
@ -150,9 +150,7 @@ winSetEngine(ScreenPtr pScreen)
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
|| pScreenInfo->fMWExtWM
|
|| pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenInfo->fMultiWindow
|
|| pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
winErrorFVerb(2,
|
winErrorFVerb(2,
|
||||||
"winSetEngine - Multi Window or Rootless => ShadowGDI\n");
|
"winSetEngine - Multi Window or Rootless => ShadowGDI\n");
|
||||||
|
|
|
@ -74,14 +74,10 @@ extern Bool g_fClipboard;
|
||||||
extern Bool g_fClipboardStarted;
|
extern Bool g_fClipboardStarted;
|
||||||
|
|
||||||
/* The global X default icons */
|
/* The global X default icons */
|
||||||
#if defined(XWIN_MULTIWINDOW)
|
|
||||||
extern HICON g_hIconX;
|
extern HICON g_hIconX;
|
||||||
extern HICON g_hSmallIconX;
|
extern HICON g_hSmallIconX;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
extern DWORD g_dwCurrentThreadID;
|
extern DWORD g_dwCurrentThreadID;
|
||||||
#endif
|
|
||||||
|
|
||||||
extern Bool g_fKeyboardHookLL;
|
extern Bool g_fKeyboardHookLL;
|
||||||
extern Bool g_fButton[3];
|
extern Bool g_fButton[3];
|
||||||
|
|
|
@ -61,7 +61,6 @@ winKeyboardMessageHookLL(int iCode, WPARAM wParam, LPARAM lParam)
|
||||||
PKBDLLHOOKSTRUCT p = (PKBDLLHOOKSTRUCT) lParam;
|
PKBDLLHOOKSTRUCT p = (PKBDLLHOOKSTRUCT) lParam;
|
||||||
HWND hwnd = GetActiveWindow();
|
HWND hwnd = GetActiveWindow();
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
WindowPtr pWin = NULL;
|
WindowPtr pWin = NULL;
|
||||||
winPrivWinPtr pWinPriv = NULL;
|
winPrivWinPtr pWinPriv = NULL;
|
||||||
winPrivScreenPtr pScreenPriv = NULL;
|
winPrivScreenPtr pScreenPriv = NULL;
|
||||||
|
@ -79,7 +78,6 @@ winKeyboardMessageHookLL(int iCode, WPARAM wParam, LPARAM lParam)
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
fPassAltTab = FALSE;
|
fPassAltTab = FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Pass keystrokes on to our main message loop */
|
/* Pass keystrokes on to our main message loop */
|
||||||
if (iCode == HC_ACTION) {
|
if (iCode == HC_ACTION) {
|
||||||
|
|
|
@ -581,7 +581,6 @@ winXIconToHICON(xcb_connection_t *conn, xcb_window_t id, int iconSize)
|
||||||
* Change the Windows window icon
|
* Change the Windows window icon
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
void
|
void
|
||||||
winUpdateIcon(HWND hWnd, xcb_connection_t *conn, Window id, HICON hIconNew)
|
winUpdateIcon(HWND hWnd, xcb_connection_t *conn, Window id, HICON hIconNew)
|
||||||
{
|
{
|
||||||
|
@ -671,4 +670,3 @@ winDestroyIcon(HICON hIcon)
|
||||||
hIcon != g_hSmallIconX && !winIconIsOverride(hIcon))
|
hIcon != g_hSmallIconX && !winIconIsOverride(hIcon))
|
||||||
DestroyIcon(hIcon);
|
DestroyIcon(hIcon);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -138,7 +138,6 @@ MakeMenu(char *name, HMENU editMenu, int editItem)
|
||||||
return hmenu;
|
return hmenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* Callback routine that is executed once per window class.
|
* Callback routine that is executed once per window class.
|
||||||
* Removes or creates custom window settings depending on LPARAM
|
* Removes or creates custom window settings depending on LPARAM
|
||||||
|
@ -197,7 +196,6 @@ ReloadEnumWindowsProc(HWND hwnd, LPARAM lParam)
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Removes any custom icons in classes, custom menus, etc.
|
* Removes any custom icons in classes, custom menus, etc.
|
||||||
|
@ -210,7 +208,6 @@ ReloadPrefs(winPrivScreenPtr pScreenPriv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||||
|
|
||||||
/* First, iterate over all windows, deleting their icons and custom menus.
|
/* First, iterate over all windows, deleting their icons and custom menus.
|
||||||
|
@ -221,7 +218,6 @@ ReloadPrefs(winPrivScreenPtr pScreenPriv)
|
||||||
*/
|
*/
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, ReloadEnumWindowsProc, FALSE);
|
EnumThreadWindows(g_dwCurrentThreadID, ReloadEnumWindowsProc, FALSE);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Now, free/clear all info from our prefs structure */
|
/* Now, free/clear all info from our prefs structure */
|
||||||
for (i = 0; i < pref.menuItems; i++)
|
for (i = 0; i < pref.menuItems; i++)
|
||||||
|
@ -264,14 +260,12 @@ ReloadPrefs(winPrivScreenPtr pScreenPriv)
|
||||||
g_hIconX = NULL;
|
g_hIconX = NULL;
|
||||||
g_hSmallIconX = NULL;
|
g_hSmallIconX = NULL;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (pScreenInfo->fMultiWindow) {
|
if (pScreenInfo->fMultiWindow) {
|
||||||
winInitGlobalIcons();
|
winInitGlobalIcons();
|
||||||
|
|
||||||
/* Rebuild the icons and menus */
|
/* Rebuild the icons and menus */
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, ReloadEnumWindowsProc, TRUE);
|
EnumThreadWindows(g_dwCurrentThreadID, ReloadEnumWindowsProc, TRUE);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Whew, done */
|
/* Whew, done */
|
||||||
}
|
}
|
||||||
|
@ -385,14 +379,12 @@ HandleCustomWM_COMMAND(HWND hwnd, WORD command, winPrivScreenPtr pScreenPriv)
|
||||||
SetWindowPos(hwnd,
|
SetWindowPos(hwnd,
|
||||||
HWND_TOPMOST,
|
HWND_TOPMOST,
|
||||||
0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
|
0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
|
||||||
#if XWIN_MULTIWINDOW
|
|
||||||
{
|
{
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
/* Reflect the changed Z order */
|
/* Reflect the changed Z order */
|
||||||
winReorderWindowsMultiWindow();
|
winReorderWindowsMultiWindow();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case CMD_RELOAD:
|
case CMD_RELOAD:
|
||||||
|
@ -409,7 +401,6 @@ HandleCustomWM_COMMAND(HWND hwnd, WORD command, winPrivScreenPtr pScreenPriv)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* Add the default or a custom menu depending on the class match
|
* Add the default or a custom menu depending on the class match
|
||||||
*/
|
*/
|
||||||
|
@ -459,7 +450,6 @@ SetupSysMenu(HWND hwnd)
|
||||||
MakeMenu(pref.defaultSysMenuName, sys, -1);
|
MakeMenu(pref.defaultSysMenuName, sys, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Possibly add a menu to the toolbar icon
|
* Possibly add a menu to the toolbar icon
|
||||||
|
|
|
@ -130,12 +130,8 @@ winInitializeScreenDefaults(void)
|
||||||
defaultScreenInfo.fMWExtWM = FALSE;
|
defaultScreenInfo.fMWExtWM = FALSE;
|
||||||
#endif
|
#endif
|
||||||
defaultScreenInfo.fRootless = FALSE;
|
defaultScreenInfo.fRootless = FALSE;
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
defaultScreenInfo.fMultiWindow = FALSE;
|
defaultScreenInfo.fMultiWindow = FALSE;
|
||||||
#endif
|
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
defaultScreenInfo.fMultiMonitorOverride = FALSE;
|
defaultScreenInfo.fMultiMonitorOverride = FALSE;
|
||||||
#endif
|
|
||||||
defaultScreenInfo.fMultipleMonitors = FALSE;
|
defaultScreenInfo.fMultipleMonitors = FALSE;
|
||||||
defaultScreenInfo.fLessPointer = FALSE;
|
defaultScreenInfo.fLessPointer = FALSE;
|
||||||
defaultScreenInfo.iResizeMode = resizeDefault;
|
defaultScreenInfo.iResizeMode = resizeDefault;
|
||||||
|
@ -524,10 +520,8 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
* Look for the '-fullscreen' argument
|
* Look for the '-fullscreen' argument
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-fullscreen")) {
|
if (IS_OPTION("-fullscreen")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
if (!screenInfoPtr->fMultiMonitorOverride)
|
if (!screenInfoPtr->fMultiMonitorOverride)
|
||||||
screenInfoPtr->fMultipleMonitors = FALSE;
|
screenInfoPtr->fMultipleMonitors = FALSE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fFullScreen = TRUE;
|
screenInfoPtr->fFullScreen = TRUE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
|
@ -548,10 +542,8 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
* Look for the '-nodecoration' argument
|
* Look for the '-nodecoration' argument
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-nodecoration")) {
|
if (IS_OPTION("-nodecoration")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
if (!screenInfoPtr->fMultiMonitorOverride)
|
if (!screenInfoPtr->fMultiMonitorOverride)
|
||||||
screenInfoPtr->fMultipleMonitors = FALSE;
|
screenInfoPtr->fMultipleMonitors = FALSE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fDecoration = FALSE;
|
screenInfoPtr->fDecoration = FALSE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
|
@ -585,40 +577,32 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
* Look for the '-rootless' argument
|
* Look for the '-rootless' argument
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-rootless")) {
|
if (IS_OPTION("-rootless")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
if (!screenInfoPtr->fMultiMonitorOverride)
|
if (!screenInfoPtr->fMultiMonitorOverride)
|
||||||
screenInfoPtr->fMultipleMonitors = FALSE;
|
screenInfoPtr->fMultipleMonitors = FALSE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fRootless = TRUE;
|
screenInfoPtr->fRootless = TRUE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* Look for the '-multiwindow' argument
|
* Look for the '-multiwindow' argument
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-multiwindow")) {
|
if (IS_OPTION("-multiwindow")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
if (!screenInfoPtr->fMultiMonitorOverride)
|
if (!screenInfoPtr->fMultiMonitorOverride)
|
||||||
screenInfoPtr->fMultipleMonitors = TRUE;
|
screenInfoPtr->fMultipleMonitors = TRUE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fMultiWindow = TRUE;
|
screenInfoPtr->fMultiWindow = TRUE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Look for the '-multiplemonitors' argument
|
* Look for the '-multiplemonitors' argument
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-multiplemonitors")
|
if (IS_OPTION("-multiplemonitors")
|
||||||
|| IS_OPTION("-multimonitors")) {
|
|| IS_OPTION("-multimonitors")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
screenInfoPtr->fMultiMonitorOverride = TRUE;
|
screenInfoPtr->fMultiMonitorOverride = TRUE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fMultipleMonitors = TRUE;
|
screenInfoPtr->fMultipleMonitors = TRUE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
|
@ -630,9 +614,7 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||||
*/
|
*/
|
||||||
if (IS_OPTION("-nomultiplemonitors")
|
if (IS_OPTION("-nomultiplemonitors")
|
||||||
|| IS_OPTION("-nomultimonitors")) {
|
|| IS_OPTION("-nomultimonitors")) {
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
|
||||||
screenInfoPtr->fMultiMonitorOverride = TRUE;
|
screenInfoPtr->fMultiMonitorOverride = TRUE;
|
||||||
#endif
|
|
||||||
screenInfoPtr->fMultipleMonitors = FALSE;
|
screenInfoPtr->fMultipleMonitors = FALSE;
|
||||||
|
|
||||||
/* Indicate that we have processed this argument */
|
/* Indicate that we have processed this argument */
|
||||||
|
|
|
@ -174,9 +174,7 @@ winRandRScreenSetSize(ScreenPtr pScreen,
|
||||||
|| pScreenInfo->fMWExtWM
|
|| pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|| pScreenInfo->fRootless
|
|| pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenInfo->fMultiWindow
|
|| pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
) {
|
) {
|
||||||
ErrorF
|
ErrorF
|
||||||
("winRandRScreenSetSize - resize not supported in rootless modes\n");
|
("winRandRScreenSetSize - resize not supported in rootless modes\n");
|
||||||
|
|
|
@ -453,7 +453,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
#undef WRAP
|
#undef WRAP
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Handle multi window mode */
|
/* Handle multi window mode */
|
||||||
else if (pScreenInfo->fMultiWindow) {
|
else if (pScreenInfo->fMultiWindow) {
|
||||||
/* Define the WRAP macro temporarily for local use */
|
/* Define the WRAP macro temporarily for local use */
|
||||||
|
@ -496,7 +495,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
||||||
#undef WRAP
|
#undef WRAP
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Wrap either fb's or shadow's CloseScreen with our CloseScreen */
|
/* Wrap either fb's or shadow's CloseScreen with our CloseScreen */
|
||||||
pScreenPriv->CloseScreen = pScreen->CloseScreen;
|
pScreenPriv->CloseScreen = pScreen->CloseScreen;
|
||||||
|
@ -525,12 +523,7 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
pScreenPriv->fRestacking = FALSE;
|
pScreenPriv->fRestacking = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XWIN_MULTIWINDOW) || defined(XWIN_MULTIWINDOWEXTWM)
|
if (pScreenInfo->fMultiWindow) {
|
||||||
if (FALSE
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| pScreenInfo->fMultiWindow
|
|
||||||
#endif
|
|
||||||
) {
|
|
||||||
#if CYGDEBUG || YES
|
#if CYGDEBUG || YES
|
||||||
winDebug("winFinishScreenInitFB - Calling winInitWM.\n");
|
winDebug("winFinishScreenInitFB - Calling winInitWM.\n");
|
||||||
#endif
|
#endif
|
||||||
|
@ -546,7 +539,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Tell the server that we are enabled */
|
/* Tell the server that we are enabled */
|
||||||
pScreenPriv->fEnabled = TRUE;
|
pScreenPriv->fEnabled = TRUE;
|
||||||
|
|
|
@ -37,11 +37,9 @@
|
||||||
* Local function prototypes
|
* Local function prototypes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
static wBOOL CALLBACK winRedrawAllProcShadowGDI(HWND hwnd, LPARAM lParam);
|
static wBOOL CALLBACK winRedrawAllProcShadowGDI(HWND hwnd, LPARAM lParam);
|
||||||
|
|
||||||
static wBOOL CALLBACK winRedrawDamagedWindowShadowGDI(HWND hwnd, LPARAM lParam);
|
static wBOOL CALLBACK winRedrawDamagedWindowShadowGDI(HWND hwnd, LPARAM lParam);
|
||||||
#endif
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
winAllocateFBShadowGDI(ScreenPtr pScreen);
|
winAllocateFBShadowGDI(ScreenPtr pScreen);
|
||||||
|
@ -263,7 +261,6 @@ winQueryRGBBitsAndMasks(ScreenPtr pScreen)
|
||||||
return fReturn;
|
return fReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/*
|
/*
|
||||||
* Redraw all ---?
|
* Redraw all ---?
|
||||||
*/
|
*/
|
||||||
|
@ -309,7 +306,6 @@ winRedrawDamagedWindowShadowGDI(HWND hwnd, LPARAM lParam)
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate a DIB for the shadow framebuffer GDI server
|
* Allocate a DIB for the shadow framebuffer GDI server
|
||||||
|
@ -403,11 +399,9 @@ winAllocateFBShadowGDI(ScreenPtr pScreen)
|
||||||
(int) pScreenInfo->dwStride);
|
(int) pScreenInfo->dwStride);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Redraw all windows */
|
/* Redraw all windows */
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
return fReturn;
|
return fReturn;
|
||||||
}
|
}
|
||||||
|
@ -525,13 +519,11 @@ winShadowUpdateGDI(ScreenPtr pScreen, shadowBufPtr pBuf)
|
||||||
SelectClipRgn(pScreenPriv->hdcScreen, NULL);
|
SelectClipRgn(pScreenPriv->hdcScreen, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Redraw all multiwindow windows */
|
/* Redraw all multiwindow windows */
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID,
|
EnumThreadWindows(g_dwCurrentThreadID,
|
||||||
winRedrawDamagedWindowShadowGDI,
|
winRedrawDamagedWindowShadowGDI,
|
||||||
(LPARAM) pBoxExtents);
|
(LPARAM) pBoxExtents);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
|
@ -776,12 +768,10 @@ winBltExposedRegionsShadowGDI(ScreenPtr pScreen)
|
||||||
/* EndPaint frees the DC */
|
/* EndPaint frees the DC */
|
||||||
EndPaint(pScreenPriv->hwndScreen, &ps);
|
EndPaint(pScreenPriv->hwndScreen, &ps);
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Redraw all windows */
|
/* Redraw all windows */
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI,
|
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI,
|
||||||
(LPARAM) pScreenPriv->hwndScreen);
|
(LPARAM) pScreenPriv->hwndScreen);
|
||||||
#endif
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -845,11 +835,9 @@ winRedrawScreenShadowGDI(ScreenPtr pScreen)
|
||||||
pScreenInfo->dwWidth, pScreenInfo->dwHeight,
|
pScreenInfo->dwWidth, pScreenInfo->dwHeight,
|
||||||
pScreenPriv->hdcShadow, 0, 0, SRCCOPY);
|
pScreenPriv->hdcShadow, 0, 0, SRCCOPY);
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Redraw all windows */
|
/* Redraw all windows */
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -944,11 +932,9 @@ winInstallColormapShadowGDI(ColormapPtr pColormap)
|
||||||
/* Save a pointer to the newly installed colormap */
|
/* Save a pointer to the newly installed colormap */
|
||||||
pScreenPriv->pcmapInstalled = pColormap;
|
pScreenPriv->pcmapInstalled = pColormap;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Redraw all windows */
|
/* Redraw all windows */
|
||||||
if (pScreenInfo->fMultiWindow)
|
if (pScreenInfo->fMultiWindow)
|
||||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,9 +109,7 @@ LRESULT
|
||||||
winHandleIconMessage(HWND hwnd, UINT message,
|
winHandleIconMessage(HWND hwnd, UINT message,
|
||||||
WPARAM wParam, LPARAM lParam, winPrivScreenPtr pScreenPriv)
|
WPARAM wParam, LPARAM lParam, winPrivScreenPtr pScreenPriv)
|
||||||
{
|
{
|
||||||
#if defined(XWIN_MULTIWINDOWEXTWM) || defined(XWIN_MULTIWINDOW)
|
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (lParam) {
|
switch (lParam) {
|
||||||
case WM_LBUTTONUP:
|
case WM_LBUTTONUP:
|
||||||
|
@ -146,7 +144,6 @@ winHandleIconMessage(HWND hwnd, UINT message,
|
||||||
/* Get actual tray icon menu */
|
/* Get actual tray icon menu */
|
||||||
hmenuTray = GetSubMenu(hmenuPopup, 0);
|
hmenuTray = GetSubMenu(hmenuPopup, 0);
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
/* Check for MultiWindow mode */
|
/* Check for MultiWindow mode */
|
||||||
if (pScreenInfo->fMultiWindow) {
|
if (pScreenInfo->fMultiWindow) {
|
||||||
MENUITEMINFO mii = { 0 };
|
MENUITEMINFO mii = { 0 };
|
||||||
|
@ -166,7 +163,6 @@ winHandleIconMessage(HWND hwnd, UINT message,
|
||||||
SetMenuItemInfo(hmenuTray, ID_APP_HIDE_ROOT, FALSE, &mii);
|
SetMenuItemInfo(hmenuTray, ID_APP_HIDE_ROOT, FALSE, &mii);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
/* Remove Hide Root Window button */
|
/* Remove Hide Root Window button */
|
||||||
RemoveMenu(hmenuTray, ID_APP_HIDE_ROOT, MF_BYCOMMAND);
|
RemoveMenu(hmenuTray, ID_APP_HIDE_ROOT, MF_BYCOMMAND);
|
||||||
|
|
|
@ -86,10 +86,8 @@ winValidateArgs(void)
|
||||||
int iCount = 0;
|
int iCount = 0;
|
||||||
|
|
||||||
/* Count conflicting options */
|
/* Count conflicting options */
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (g_ScreenInfo[i].fMultiWindow)
|
if (g_ScreenInfo[i].fMultiWindow)
|
||||||
++iCount;
|
++iCount;
|
||||||
#endif
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
if (g_ScreenInfo[i].fMWExtWM)
|
if (g_ScreenInfo[i].fMWExtWM)
|
||||||
++iCount;
|
++iCount;
|
||||||
|
@ -112,10 +110,9 @@ winValidateArgs(void)
|
||||||
/* Check for -multiwindow or -mwextwm and Xdmcp */
|
/* Check for -multiwindow or -mwextwm and Xdmcp */
|
||||||
/* allow xdmcp if screen 0 is normal. */
|
/* allow xdmcp if screen 0 is normal. */
|
||||||
if (g_fXdmcpEnabled && !fHasNormalScreen0 && (FALSE
|
if (g_fXdmcpEnabled && !fHasNormalScreen0 && (FALSE
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| g_ScreenInfo[i].
|
|| g_ScreenInfo[i].
|
||||||
fMultiWindow
|
fMultiWindow
|
||||||
#endif
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
|| g_ScreenInfo[i].
|
|| g_ScreenInfo[i].
|
||||||
fMWExtWM
|
fMWExtWM
|
||||||
|
@ -129,9 +126,7 @@ winValidateArgs(void)
|
||||||
|
|
||||||
/* Check for -multiwindow, -mwextwm, or -rootless and -fullscreen */
|
/* Check for -multiwindow, -mwextwm, or -rootless and -fullscreen */
|
||||||
if (g_ScreenInfo[i].fFullScreen && (FALSE
|
if (g_ScreenInfo[i].fFullScreen && (FALSE
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| g_ScreenInfo[i].fMultiWindow
|
|| g_ScreenInfo[i].fMultiWindow
|
||||||
#endif
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
|| g_ScreenInfo[i].fMWExtWM
|
|| g_ScreenInfo[i].fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|
@ -144,9 +139,7 @@ winValidateArgs(void)
|
||||||
|
|
||||||
/* Check for -multiwindow, -mwextwm, or -rootless and -nodecoration */
|
/* Check for -multiwindow, -mwextwm, or -rootless and -nodecoration */
|
||||||
if (!g_ScreenInfo[i].fDecoration && (FALSE
|
if (!g_ScreenInfo[i].fDecoration && (FALSE
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| g_ScreenInfo[i].fMultiWindow
|
|| g_ScreenInfo[i].fMultiWindow
|
||||||
#endif
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
|| g_ScreenInfo[i].fMWExtWM
|
|| g_ScreenInfo[i].fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -84,7 +84,6 @@ typedef struct {
|
||||||
#endif
|
#endif
|
||||||
} winPrivWinRec, *winPrivWinPtr;
|
} winPrivWinRec, *winPrivWinPtr;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
typedef struct _winWMMessageRec {
|
typedef struct _winWMMessageRec {
|
||||||
DWORD dwID;
|
DWORD dwID;
|
||||||
DWORD msg;
|
DWORD msg;
|
||||||
|
@ -162,5 +161,4 @@ void
|
||||||
void
|
void
|
||||||
winShowWindowOnTaskbar(HWND hWnd, Bool show);
|
winShowWindowOnTaskbar(HWND hWnd, Bool show);
|
||||||
|
|
||||||
#endif /* XWIN_MULTIWINDOW */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -229,11 +229,9 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
||
|
||
|
||||||
s_pScreenInfo->
|
s_pScreenInfo->
|
||||||
fRootless
|
fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
||
|
||
|
||||||
s_pScreenInfo->
|
s_pScreenInfo->
|
||||||
fMultiWindow
|
fMultiWindow
|
||||||
#endif
|
|
||||||
)) {
|
)) {
|
||||||
DWORD dwWidth = 0, dwHeight = 0;
|
DWORD dwWidth = 0, dwHeight = 0;
|
||||||
|
|
||||||
|
@ -321,9 +319,7 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|| s_pScreenInfo->fMWExtWM
|
|| s_pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|| s_pScreenInfo->fRootless
|
|| s_pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| s_pScreenInfo->fMultiWindow
|
|| s_pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
|| s_pScreenInfo->fFullScreen)
|
|| s_pScreenInfo->fFullScreen)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -624,9 +620,7 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|| s_pScreenInfo->fMWExtWM
|
|| s_pScreenInfo->fMWExtWM
|
||||||
#endif
|
#endif
|
||||||
|| s_pScreenInfo->fRootless
|
|| s_pScreenInfo->fRootless
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
|| s_pScreenInfo->fMultiWindow
|
|| s_pScreenInfo->fMultiWindow
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1189,7 +1183,6 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
winDisplayExitDialog(s_pScreenPriv);
|
winDisplayExitDialog(s_pScreenPriv);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
case ID_APP_HIDE_ROOT:
|
case ID_APP_HIDE_ROOT:
|
||||||
if (s_pScreenPriv->fRootWindowShown)
|
if (s_pScreenPriv->fRootWindowShown)
|
||||||
ShowWindow(s_pScreenPriv->hwndScreen, SW_HIDE);
|
ShowWindow(s_pScreenPriv->hwndScreen, SW_HIDE);
|
||||||
|
@ -1197,7 +1190,6 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
ShowWindow(s_pScreenPriv->hwndScreen, SW_SHOW);
|
ShowWindow(s_pScreenPriv->hwndScreen, SW_SHOW);
|
||||||
s_pScreenPriv->fRootWindowShown = !s_pScreenPriv->fRootWindowShown;
|
s_pScreenPriv->fRootWindowShown = !s_pScreenPriv->fRootWindowShown;
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
case ID_APP_MONITOR_PRIMARY:
|
case ID_APP_MONITOR_PRIMARY:
|
||||||
fPrimarySelection = !fPrimarySelection;
|
fPrimarySelection = !fPrimarySelection;
|
||||||
|
@ -1217,10 +1209,8 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
case WM_GIVEUP:
|
case WM_GIVEUP:
|
||||||
/* Tell X that we are giving up */
|
/* Tell X that we are giving up */
|
||||||
#ifdef XWIN_MULTIWINDOW
|
|
||||||
if (s_pScreenInfo->fMultiWindow)
|
if (s_pScreenInfo->fMultiWindow)
|
||||||
winDeinitMultiWindowWM();
|
winDeinitMultiWindowWM();
|
||||||
#endif
|
|
||||||
GiveUp(0);
|
GiveUp(0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue