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
164263e1
Unverified
Commit
164263e1
authored
Feb 26, 2018
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sunweaver-pr/nomagicpixel' into 3.6.x
Attributes GH PR #658:
https://github.com/ArcticaProject/nx-libs/pull/658
Fixes: ArcticaProject/nx-libs#657
parents
05152b78
8d00456a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
1 deletion
+37
-1
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+18
-0
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+1
-1
Options.c
nx-X11/programs/Xserver/hw/nxagent/Options.c
+2
-0
Options.h
nx-X11/programs/Xserver/hw/nxagent/Options.h
+6
-0
nxagent.1
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+7
-0
Loop.cpp
nxcomp/src/Loop.cpp
+1
-0
Misc.cpp
nxcomp/src/Misc.cpp
+1
-0
nxproxy.1
nxproxy/man/nxproxy.1
+1
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
164263e1
...
@@ -676,6 +676,10 @@ int ddxProcessArgument(int argc, char *argv[], int i)
...
@@ -676,6 +676,10 @@ int ddxProcessArgument(int argc, char *argv[], int i)
return
1
;
return
1
;
}
}
if
(
!
strcmp
(
argv
[
i
],
"-nomagicpixel"
))
{
nxagentChangeOption
(
MagicPixel
,
0
);
return
1
;
}
if
(
!
strcmp
(
argv
[
i
],
"-noonce"
))
if
(
!
strcmp
(
argv
[
i
],
"-noonce"
))
{
{
...
@@ -1246,6 +1250,19 @@ static void nxagentParseOptions(char *name, char *value)
...
@@ -1246,6 +1250,19 @@ static void nxagentParseOptions(char *name, char *value)
return
;
return
;
}
}
else
if
(
!
strcmp
(
name
,
"magicpixel"
))
{
if
(
!
strcmp
(
value
,
"0"
))
{
nxagentChangeOption
(
MagicPixel
,
0
);
}
else
{
nxagentChangeOption
(
MagicPixel
,
1
);
}
return
;
}
else
if
(
strcmp
(
name
,
"shadowuid"
)
==
0
)
else
if
(
strcmp
(
name
,
"shadowuid"
)
==
0
)
{
{
nxagentShadowUid
=
atoi
(
value
);
nxagentShadowUid
=
atoi
(
value
);
...
@@ -2075,6 +2092,7 @@ void ddxUseMsg()
...
@@ -2075,6 +2092,7 @@ void ddxUseMsg()
ErrorF
(
"-forcenx force use of NX protocol messages assuming communication through nxproxy
\n
"
);
ErrorF
(
"-forcenx force use of NX protocol messages assuming communication through nxproxy
\n
"
);
ErrorF
(
"-timeout int auto-disconnect timeout in seconds (minimum allowed: 60)
\n
"
);
ErrorF
(
"-timeout int auto-disconnect timeout in seconds (minimum allowed: 60)
\n
"
);
ErrorF
(
"-norootlessexit don't exit if there are no clients in rootless mode
\n
"
);
ErrorF
(
"-norootlessexit don't exit if there are no clients in rootless mode
\n
"
);
ErrorF
(
"-nomagicpixel disable nxagent's magic pixel
\n
"
);
#ifdef RENDER
#ifdef RENDER
ErrorF
(
"-norender disable the use of the render extension
\n
"
);
ErrorF
(
"-norender disable the use of the render extension
\n
"
);
ErrorF
(
"-nocomposite disable the use of the composite extension
\n
"
);
ErrorF
(
"-nocomposite disable the use of the composite extension
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
164263e1
...
@@ -1218,7 +1218,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
...
@@ -1218,7 +1218,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
if
(
nxagentOption
(
Fullscreen
))
if
(
nxagentOption
(
Fullscreen
))
{
{
if
(
nxagentMagicPixelZone
(
X
.
xbutton
.
x
,
X
.
xbutton
.
y
)
)
if
(
(
nxagentOption
(
MagicPixel
)
==
1
)
&&
(
nxagentMagicPixelZone
(
X
.
xbutton
.
x
,
X
.
xbutton
.
y
))
)
{
{
pScreen
=
nxagentScreen
(
X
.
xbutton
.
window
);
pScreen
=
nxagentScreen
(
X
.
xbutton
.
window
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.c
View file @
164263e1
...
@@ -155,6 +155,8 @@ void nxagentInitOptions()
...
@@ -155,6 +155,8 @@ void nxagentInitOptions()
nxagentOptions
.
Menu
=
1
;
nxagentOptions
.
Menu
=
1
;
nxagentOptions
.
MagicPixel
=
1
;
nxagentOptions
.
ClientOs
=
UNDEFINED
;
nxagentOptions
.
ClientOs
=
UNDEFINED
;
nxagentOptions
.
InhibitXkb
=
1
;
nxagentOptions
.
InhibitXkb
=
1
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.h
View file @
164263e1
...
@@ -386,6 +386,12 @@ typedef struct _AgentOptions
...
@@ -386,6 +386,12 @@ typedef struct _AgentOptions
int
Menu
;
int
Menu
;
/*
/*
* Enabling/disabling the magic pixel.
*/
int
MagicPixel
;
/*
* Specify the Operative System of the client.
* Specify the Operative System of the client.
*/
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
View file @
164263e1
...
@@ -399,6 +399,10 @@ auto-disconnect timeout in seconds (minimum allowed: 60)
...
@@ -399,6 +399,10 @@ auto-disconnect timeout in seconds (minimum allowed: 60)
.B \-norootlessexit
.B \-norootlessexit
don't exit if there are no clients in rootless mode
don't exit if there are no clients in rootless mode
.TP 8
.TP 8
.B \-nomagicpixel
disable magic pixel support at session startup, can be re-enabled via nx/nx option on session
resumption
.TP 8
.B \-norender
.B \-norender
disable the use of the render extension
disable the use of the render extension
.TP 8
.TP 8
...
@@ -599,6 +603,9 @@ overrides the command line default.
...
@@ -599,6 +603,9 @@ overrides the command line default.
support pulldown menu in \fBnxagent\fR session (only available on
support pulldown menu in \fBnxagent\fR session (only available on
proxy <-> agent remote sessions)
proxy <-> agent remote sessions)
.TP 8
.TP 8
.B magicpixel=<int>
enable/disable magic pixel support in fullscreen mode (default: 1, enabled)
.TP 8
.B sleep=<int>
.B sleep=<int>
delay X server operations when suspended (provided in msec), set to
delay X server operations when suspended (provided in msec), set to
\fI0\fR to keep \fBnxagent\fR session fully functional when suspended
\fI0\fR to keep \fBnxagent\fR session fully functional when suspended
...
...
nxcomp/src/Loop.cpp
View file @
164263e1
...
@@ -8474,6 +8474,7 @@ int ParseEnvironmentOptions(const char *env, int force)
...
@@ -8474,6 +8474,7 @@ int ParseEnvironmentOptions(const char *env, int force)
else
if
(
strcasecmp
(
name
,
"defer"
)
==
0
||
else
if
(
strcasecmp
(
name
,
"defer"
)
==
0
||
strcasecmp
(
name
,
"tile"
)
==
0
||
strcasecmp
(
name
,
"tile"
)
==
0
||
strcasecmp
(
name
,
"menu"
)
==
0
||
strcasecmp
(
name
,
"menu"
)
==
0
||
strcasecmp
(
name
,
"magicpixel"
)
==
0
||
strcasecmp
(
name
,
"state"
)
==
0
)
strcasecmp
(
name
,
"state"
)
==
0
)
{
{
nxdbg
<<
"Loop: Ignoring agent option '"
<<
name
nxdbg
<<
"Loop: Ignoring agent option '"
<<
name
...
...
nxcomp/src/Misc.cpp
View file @
164263e1
...
@@ -343,6 +343,7 @@ shadowmode=s\n\
...
@@ -343,6 +343,7 @@ shadowmode=s\n\
defer=n
\n
\
defer=n
\n
\
tile=s
\n
\
tile=s
\n
\
menu=n
\n
\
menu=n
\n
\
magicpixel=n
\n
\
sleep=n
\n
\
sleep=n
\n
\
tolerancechecks=s
\n
\
tolerancechecks=s
\n
\
keyconv=s
\n
\
keyconv=s
\n
\
...
...
nxproxy/man/nxproxy.1
View file @
164263e1
...
@@ -327,6 +327,7 @@ encryption of the point to point communication.
...
@@ -327,6 +327,7 @@ encryption of the point to point communication.
defer=<int>
defer=<int>
tile=<string>
tile=<string>
menu=<int>
menu=<int>
magicpixel=<int>
sleep=<int>
sleep=<int>
.SH NX ENVIRONMENT VARIABLES
.SH NX ENVIRONMENT VARIABLES
...
...
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