Unverified Commit 3523d15e authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/fullscreen_select' into 3.6.x

parents 12575615 e7b4440f
...@@ -571,12 +571,16 @@ int ddxProcessArgument(int argc, char *argv[], int i) ...@@ -571,12 +571,16 @@ int ddxProcessArgument(int argc, char *argv[], int i)
{ {
if (++i < argc) if (++i < argc)
{ {
if (!strcmp(argv[i],"fullscreen")) if (!strcmp(argv[i],"fullscreen") || !strcmp(argv[i],"allscreens"))
{ {
nxagentChangeOption(Fullscreen, True); nxagentChangeOption(Fullscreen, True);
nxagentChangeOption(AllScreens, True); nxagentChangeOption(AllScreens, True);
} }
else if (!strcmp(argv[i],"onescreen"))
{
nxagentChangeOption(Fullscreen, True);
nxagentChangeOption(AllScreens, False);
}
else else
{ {
if (nxagentUserGeometry.flag == 0) if (nxagentUserGeometry.flag == 0)
...@@ -1112,6 +1116,11 @@ static void nxagentParseSingleOption(char *name, char *value) ...@@ -1112,6 +1116,11 @@ static void nxagentParseSingleOption(char *name, char *value)
fprintf(stderr, "nxagentParseSingleOption: Ignoring option 'fullscreen' at reconnection.\n"); fprintf(stderr, "nxagentParseSingleOption: Ignoring option 'fullscreen' at reconnection.\n");
#endif #endif
} }
else if (!strcmp(value, "2"))
{
nxagentChangeOption(Fullscreen, True);
nxagentChangeOption(AllScreens, False);
}
else if (!strcmp(value, "1")) else if (!strcmp(value, "1"))
{ {
nxagentChangeOption(Fullscreen, True); nxagentChangeOption(Fullscreen, True);
......
...@@ -337,6 +337,12 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen) ...@@ -337,6 +337,12 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
*/ */
void nxagentMaximizeToFullScreen(ScreenPtr pScreen) void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
{ {
if (nxagentOption(AllScreens))
nxagentSwitchAllScreens(pScreen, True);
else
nxagentSwitchFullscreen(pScreen, True);
return;
/* /*
XUnmapWindow(nxagentDisplay, nxagentIconWindow); XUnmapWindow(nxagentDisplay, nxagentIconWindow);
*/ */
...@@ -363,7 +369,7 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after ...@@ -363,7 +369,7 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
XEvent e; XEvent e;
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentMaximizeToFullscreen: WARNING! Going to wait for the ReparentNotify event [%d].\n", i); fprintf(stderr, "%d: WARNING! Going to wait for the ReparentNotify event [%d].\n", __func__, i);
#endif #endif
if (XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, ReparentNotify, &e)) if (XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, ReparentNotify, &e))
......
...@@ -729,7 +729,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn) ...@@ -729,7 +729,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
} }
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentSwitchFullscreen: Switching to %s mode.\n", fprintf(stderr, "%s: Switching to %s mode.\n", __func__,
switchOn ? "fullscreen" : "windowed"); switchOn ? "fullscreen" : "windowed");
#endif #endif
......
...@@ -281,7 +281,9 @@ not specified, \fBnxagent\fR will choose ...@@ -281,7 +281,9 @@ not specified, \fBnxagent\fR will choose
.I W .I W
and and
.I H .I H
to be 3/4ths the dimensions of the root window of the real server. to be 3/4ths the dimensions of the root window of the real server. For
further values accepted see the documentation of
\fBgeometry=<string>\fR below.
.TP 8 .TP 8
.B \-dpi \fIresolution\fP .B \-dpi \fIresolution\fP
sets the resolution for all screens, in dots per inch. If this option sets the resolution for all screens, in dots per inch. If this option
...@@ -626,14 +628,21 @@ line, no-op when resuming (default: \fI0\fR, disabled) ...@@ -626,14 +628,21 @@ line, no-op when resuming (default: \fI0\fR, disabled)
.TP 8 .TP 8
.B geometry=<string> .B geometry=<string>
desktop geometry when starting or resuming a session, no-op in desktop geometry when starting or resuming a session, no-op in
rootless mode (default 66% of the underlying X server geometry) rootless mode (default 66% of the underlying X server geometry). You
can either specify a standard X geometry string
(WxH+X+Y) or \fIallscreens\fR for a window covering
all available screens or \fRonescreen\fR for a window covering only
one screen. For historical reasons \fIfullscreen\fR (as a synonym to
\fIallscreens\fR) is also accepted.
.TP 8
.B fullscreen=<int>
start or resume a session in fullscreen mode (default: \fI0\fR, off). Specify \fI1\fR for
a fullscreen window covering all available screens or \fI2\fR for a fullscreen window
covering only the first screen.
.TP 8 .TP 8
.B resize=<bool> .B resize=<bool>
set resizing support (default: \fI1\fR, enabled) set resizing support (default: \fI1\fR, enabled)
.TP 8 .TP 8
.B fullscreen=<bool>
start or resume a session in fullscreen mode (default: \fI0\fR, off)
.TP 8
.B keyboard=<string> or kbtype=<string> .B keyboard=<string> or kbtype=<string>
.BR query | clone | <model>/<layout> | rmlvo/<rules>#<model>#<layout>#<variant>#<options> .BR query | clone | <model>/<layout> | rmlvo/<rules>#<model>#<layout>#<variant>#<options>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment