Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
3523d15e
Unverified
Commit
3523d15e
authored
Jan 15, 2021
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/fullscreen_select' into 3.6.x
Attributes GH PR #978:
https://github.com/ArcticaProject/nx-libs/pull/978
parents
12575615
e7b4440f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
9 deletions
+33
-9
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+11
-2
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+7
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+1
-1
nxagent.1
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+14
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
3523d15e
...
...
@@ -571,12 +571,16 @@ int ddxProcessArgument(int argc, char *argv[], int i)
{
if
(
++
i
<
argc
)
{
if
(
!
strcmp
(
argv
[
i
],
"fullscreen"
))
if
(
!
strcmp
(
argv
[
i
],
"fullscreen"
)
||
!
strcmp
(
argv
[
i
],
"allscreens"
)
)
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
True
);
}
else
if
(
!
strcmp
(
argv
[
i
],
"onescreen"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
False
);
}
else
{
if
(
nxagentUserGeometry
.
flag
==
0
)
...
...
@@ -1112,6 +1116,11 @@ static void nxagentParseSingleOption(char *name, char *value)
fprintf
(
stderr
,
"nxagentParseSingleOption: Ignoring option 'fullscreen' at reconnection.
\n
"
);
#endif
}
else
if
(
!
strcmp
(
value
,
"2"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
False
);
}
else
if
(
!
strcmp
(
value
,
"1"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
3523d15e
...
...
@@ -337,6 +337,12 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
*/
void
nxagentMaximizeToFullScreen
(
ScreenPtr
pScreen
)
{
if
(
nxagentOption
(
AllScreens
))
nxagentSwitchAllScreens
(
pScreen
,
True
);
else
nxagentSwitchFullscreen
(
pScreen
,
True
);
return
;
/*
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
*/
...
...
@@ -363,7 +369,7 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
XEvent
e
;
#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
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
ReparentNotify
,
&
e
))
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
3523d15e
...
...
@@ -729,7 +729,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
}
#ifdef TEST
fprintf
(
stderr
,
"
nxagentSwitchFullscreen: Switching to %s mode.
\n
"
,
fprintf
(
stderr
,
"
%s: Switching to %s mode.
\n
"
,
__func__
,
switchOn
?
"fullscreen"
:
"windowed"
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
View file @
3523d15e
...
...
@@ -281,7 +281,9 @@ not specified, \fBnxagent\fR will choose
.I W
and
.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
.B \-dpi \fIresolution\fP
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)
.TP 8
.B geometry=<string>
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
.B resize=<bool>
set resizing support (default: \fI1\fR, enabled)
.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>
.BR query | clone | <model>/<layout> | rmlvo/<rules>#<model>#<layout>#<variant>#<options>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment