aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Args.c
Commit message (Collapse)AuthorAgeFilesLines
* nxagent: Determine nxagentProgName only onceUlrich Sibiller2019-05-101-7/+21
| | | | | | | also add TEST prints, init nxagentProgName with NULL and add const where it was missing. Fixes ArcticaProject/nx-libs#803
* Revert "nxagent: rework Bool handling"Ulrich Sibiller2019-02-151-16/+16
| | | | | | | | | | | | This reverts commit 16cd2bbe1c4425e3fa557f9ca0723aa94a50b071. It turned out that I had missed some of the Booleans being actually tristate variables. I think I can fix this (they do not need to be tristate) but I revert this for now to get back to a working state (there are reports about non-working fullscreen mode and reconnect problems). Refers to ArcticaProject/nx-libs#772
* nxagent: rework Bool handlingUlrich Sibiller2019-02-111-16/+16
| | | | drop "== False", "== 0", "== True" and "== 0" for nxagentOptions and Traps
* Use basename() to derive nxagentProgName cleanly.Mike Gabriel2018-08-241-2/+5
|
* Call checkX2goAgent much earlier (in ddxProcessArgument) and adapt ↵Mike Gabriel2018-08-241-1/+14
| | | | NXAGENTWINDOWNAMELENGTH to its result.
* Args.c: allow options to contain URL encoded charactersUlrich Sibiller2018-08-241-0/+35
| | | | | | Same as in nxcomp's option handling. We really only need it for "," (%2C) and "=" (%3D), currently, but it can handle all encoded characters.
* Args.c: rename nxagentParseOptions to nxagentParseSingleOptionUlrich Sibiller2018-08-241-14/+14
| | | | new name is more descriptive
* nxagent: rearrange nx options in usageUlrich Sibiller2018-02-281-4/+4
| | | | | make them appear in the nx section. Also separate the nx section from the other options by an extra emtpy line.
* nxagent: Also provide auto DPI feature via nx/nx option 'autodpi', taking ↵Mike Gabriel2018-02-271-0/+19
| | | | only effect on session startups.
* nxagent: Auto-detect client-side DPI at session startup.Simon Matter2018-02-271-0/+8
|
* hw/nxagent/: Stop using non-portable '__progname', set up our own ↵Mike Gabriel2018-02-261-3/+5
| | | | 'nxagentProgName' instead and pass it around where needed.
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-6/+6
|
* nxagent/Args.c: Mention new -options cmdline parameter in usage info.Simon Matter2018-02-261-0/+1
| | | | Fixes ArcticaProject/nx-libs#639
* nxagent: Add -version cmdline option.Simon Matter2018-02-261-0/+11
| | | | Fixes ArcticaProject/nx-libs#653.
* nxagent: Add support for optionally enabling/disabling the magic pixel feature.Mike Gabriel2018-02-261-0/+18
| | | | Fixes ArcticaProject/nx-libs#657.
* Args.c: simplify nxagentGetDialogName()Ulrich Sibiller2018-01-071-11/+4
|
* Args.c, Error.[ch]: introduce own length macro for nxagentClientsLogNameUlrich Sibiller2018-01-071-1/+1
|
* Args.c: use strdup instead of mallocUlrich Sibiller2018-01-071-35/+7
|
* Replace hardcoded string lengths by macrosUlrich Sibiller2018-01-071-53/+18
|
* add option keyconv=(auto|on|off)Ulrich Sibiller2017-11-231-0/+19
| | | | | | | | | | | | Adds a new option called "keyconv" to control keycode conversion. Before commit 2f2ade61a8823bad012737b2b388dcc168cccbbf keycode conversion was activated if the client was Linux and client side rules and/or model was "evdev". The only (and undocumented) way to disable that was providing a value different from "linux" for the "client" option (which had no other effect). The mentioned commit removed the dependency on Linux and so there was no way anymore to disable keycode conversion.
* simply free() callsUlrich Sibiller2017-11-211-6/+2
| | | | free() can handle NULL so there's no need to check this ourselves
* Args.c: simplify nxagentProcessOptionsFile()Ulrich Sibiller2017-11-181-20/+16
|
* Args.c: Fix compile bug with DEBUG enabledUlrich Sibiller2017-11-181-1/+1
|
* Fix options parsing on reconnectUlrich Sibiller2017-11-181-34/+40
| | | | | | Commit 3f7b3001988bf921e6cd860f03a6256b1451ee3d was incomplete: the options parameter was not parsed as a string on reconnect. It was always assumed to be a filename.
* treat options parameter as option string if it starts with nx/nxUlrich Sibiller2017-07-251-1/+16
| | | | | | | | | | This way one can easily pass options to nxagent run as Xnest replacement without having to create a temporary options file. Please note that it is not of much use for normal sessions. Options passed like this cannot be changed after startup so a reconnect may not work as expected. Fixes ArcticaProject/nx-libs#476
* rename nxagentOptionFile to nxagentOptionsFilenameUlrich Sibiller2017-07-241-13/+13
|
* pass filename as parameter to nxagentProcessOptionsFile()Ulrich Sibiller2017-07-231-14/+14
| | | | Do not use global variables where it is not necessary.
* Report Xlib-side window IDs to session.log in machine readable form. This ↵Mike Gabriel2017-07-051-0/+12
| | | | feature can be enabled by the cmdline options -reportwids and -reportprivatewids.
* hw/nxagent/Window.c: Introduce NX_REAL_WINDOW window property.Mike Gabriel2017-06-301-0/+6
| | | | | | | | | | | | | | | | In nxagent sessions, all X11 clients have a representation of their NX session-side window object on the real X-Server side. The window object gets stored in the new NX_REAL_WINDOW window property immediately after window creation. This mapping is created in nxagentCreateWindow(). On session resumption, the client side window IDs normally change. Thus, during session resumption, all NX_REAL_WINDOW properties require being updated. This happens in nxagentReconnectWindow(). While a session is suspended, the NX_REAL_WINDOW property does not exist. It gets removed during nxagentDisconnectWindow().
* Args.c: fix sync option parsingUlrich Sibiller2017-06-091-4/+2
| | | | This fixes ArcticaProject/nx-libs#465
* Args.c: add two missing options to help messageUlrich Sibiller2017-04-031-0/+2
|
* Args.c: Fix missing parenthesesUlrich Sibiller2017-03-101-0/+2
|
* nxagent: move validateString as inline func to Utils.hUlrich Sibiller2017-03-031-1/+1
|
* nxagent: half number of NameForAtom callsUlrich Sibiller2017-03-031-0/+1
| | | | | | | | Because of validateString being a macro NameForAtom was called twice most of the time. Fix that by making validateString a function. Fixes ArticaProject/nx-libs#357
* The smart scheduler is not optional.Mathieu Bérard2017-02-151-20/+0
| | | | | | | | | | | | Backported from X.org: commit 9f9268821b13038556fbc029df54ab0e9b2aa77f Author: Mathieu Bérard <mathieu.berard@crans.org> Date: Mon Aug 11 13:52:38 2008 -0400 The smart scheduler is not optional. Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* drop platform support: unifdef sgi.Mike Gabriel2017-02-081-6/+0
| | | | Relates to ArcticaProject/nx-libs#275.
* nxcompext: Move code into Xserver subtree, as nxcompext requires Xserver ↵Mike Gabriel2016-11-151-1/+1
| | | | | | includes at build time. Fixes ArcticaProject/nx-libs#276.
* Args.c: fix string format warningUlrich Sibiller2016-10-201-2/+2
| | | | warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long int’ [-Wformat=]
* hw/nxagent/Args.c: Follow-up fix for PR #183: expect reconnectchecks=bypass ↵Mike Gabriel2016-07-281-1/+1
| | | | instead of =none.
* {nx-X11/programs/Xserver/hw/nxagent/{Args.c,Options.{c,h}},nxcomp/{Loop,Misc ↵Mihai Moldovan2016-07-281-0/+76
| | | | }.cpp}: add tolerancechecks parameter as an nx/nx option and ReconnectTolerance as an nxagentOption.
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-061-7/+15
| | | | that NoMachine placed there own copyright statement in.
* hw/nxagent/Args.c: Fix fprintf placeholder (%u -> %lu).Mike Gabriel2016-07-051-2/+2
|
* nx-X11/programs/Xserver: Drop {X,x}alloc() macros, use malloc() instead.Mike Gabriel2016-07-021-3/+3
|
* nx-X11/programs/Xserver: Drop {X,x}free() macros, use free() instead.Mike Gabriel2016-07-021-3/+3
| | | | Fixes ArcticaProject/nx-libs#105
* Properly enable/disable Xinerama support in nxagent via cmdline options ↵Mike Gabriel2016-06-181-21/+41
| | | | | | | | | | | | | | | | | | | provider in Xserver/os/utils.c. * Xinerama defaults to enabled, using RRXineramaExtension (i.e. cmdline option: +rrxinerama). * Cmdline option -rrxinerama disables Xinerama support entirely. * Cmdline option +xinerama switches from RRXineramaExtension to PanoramiXExtension. * Cmdline option -xinerama is actually non-functional (i.e. the default). * If the nx/nx option "xinerama" is handed over to nxagent, then Xinerama is only switched on if that given option enables it (value: 1) _and_ if either of the Xinerama extensions (PanoramiX or RRXinerama) has been initialized (via cmdline options above). Fixes ArcticaProject/nx-libs#117. Fixes ArcticaProject/nx-libs#134 (makes flawed PR#134 obsolete).
* {nx-X11/programs/Xserver/hw/nxagent/{{Args,Handlers,Image,Options}.c,Options ↵Mihai Moldovan2016-06-171-0/+38
| | | | .h},nxcomp/{Loop,Misc}.cpp}: add configurable sleep delay if session is suspended.
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-2/+2
| | | | with system-wide shared libraries.
* hw/nxagent/Args.c: Fix syntax errors for builds using -UPANORAMIX.Mike Gabriel2016-06-091-1/+1
|
* Provide support for re-enabling Xinerama on session resumptions.Mike Gabriel2015-12-301-0/+31
| | | | | | | | | | | | | | By design, when resuming a session, Xinerama can only be re-enabled by NX option parsing. Thus, this change introduces a "xinerama" NX option that can be loaded via an options file into NX agent when resuming a session. The new xinerame NX session option also allows switching on Xinerama at session startup via an option file. When implementing the new NX Xinerama support into clients (like TheQVD, X2Go Client, etc., this new xinerama NX option should be used for activating Xinerama in the NX / QVD / X2Go session.
* Re-add -sync option back to nxagent to allow synchronous debugging of the ↵Mike Gabriel2015-10-061-0/+8
| | | | nxagent DDX.