summaryrefslogtreecommitdiff
path: root/hw/xwin/winprocarg.c
diff options
context:
space:
mode:
authorKensuke Matsuzaki <zakki@peppermint.jp>2004-11-04 11:52:22 +0000
committerKensuke Matsuzaki <zakki@peppermint.jp>2004-11-04 11:52:22 +0000
commit1aef1060647d22b676a29f6dcf1ac54f9fe7ff5d (patch)
tree70900e674813002e49a88c2a9deb77dbd2817165 /hw/xwin/winprocarg.c
parent522c878fca3bfe97cd408e37065f827c004faa04 (diff)
Add InternalWM mode.
Diffstat (limited to 'hw/xwin/winprocarg.c')
-rwxr-xr-xhw/xwin/winprocarg.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/hw/xwin/winprocarg.c b/hw/xwin/winprocarg.c
index dd61b94b5..46d665013 100755
--- a/hw/xwin/winprocarg.c
+++ b/hw/xwin/winprocarg.c
@@ -123,6 +123,7 @@ winInitializeDefaultScreens (void)
g_ScreenInfo[i].fDecoration = TRUE;
#ifdef XWIN_MULTIWINDOWEXTWM
g_ScreenInfo[i].fMWExtWM = FALSE;
+ g_ScreenInfo[i].fInternalWM = FALSE;
#endif
g_ScreenInfo[i].fRootless = FALSE;
#ifdef XWIN_MULTIWINDOW
@@ -505,6 +506,33 @@ ddxProcessArgument (int argc, char *argv[], int i)
/* Indicate that we have processed this argument */
return 1;
}
+ /*
+ * Look for the '-internalwm' argument
+ */
+ if (IS_OPTION ("-internalwm"))
+ {
+ /* Is this parameter attached to a screen or is it global? */
+ if (-1 == g_iLastScreen)
+ {
+ int j;
+
+ /* Parameter is for all screens */
+ for (j = 0; j < MAXSCREENS; j++)
+ {
+ g_ScreenInfo[j].fMWExtWM = TRUE;
+ g_ScreenInfo[j].fInternalWM = TRUE;
+ }
+ }
+ else
+ {
+ /* Parameter is for a single screen */
+ g_ScreenInfo[g_iLastScreen].fMWExtWM = TRUE;
+ g_ScreenInfo[g_iLastScreen].fInternalWM = TRUE;
+ }
+
+ /* Indicate that we have processed this argument */
+ return 1;
+ }
#endif
/*