aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Screen.c
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright yearsUlrich Sibiller2023-04-281-4/+4
| | | | Addresses ArcticaProject/nx-libs#985
* Screen.c: use %s / __func__ for fprintfUlrich Sibiller2023-04-271-141/+141
|
* Screen.c: fix handling of AllScreens without a running window managerUlrich Sibiller2021-12-291-0/+1
| | | | | | | | | | | | When used with the old nomachine nxclient (nxclient-3.5.0-9.exe) on Windows for running a desktop session the screen size was wrong (set to 3/4 of the requested size while also activating fullscreen because in that case nomachine's nxwin does not offer a window manager). Fix this by always setting AllScreens to true when there's no window manager, just as it was already done with the FullScreen variable. Fixes: ArcticaProject/nx-libs#1030
* Screen.c, Window.c: use "None" everywhere for FullscreenWindowUlrich Sibiller2021-10-301-1/+1
|
* Screen.c: Fix wrong format specifierUlrich Sibiller2021-10-301-1/+1
|
* nxagent: make nxagentX2go a Boolean everywhereUlrich Sibiller2021-06-081-1/+1
| | | | also correct ugly if formatting regarding nxagentX2go
* nxagent: treat enableBackingStore as BooleanUlrich Sibiller2021-06-081-1/+1
| | | | Use TRUE and FALSE like dix does.
* nxagent: make X2GO support optionalUlrich Sibiller2021-06-081-0/+5
|
* Use NXAGENT_ONSTART define at more locationsUlrich Sibiller2021-06-081-0/+1
| | | | | marking all the code that is not really required when not using nomachine's nxclient.
* Screen.c: rephrase commentUlrich Sibiller2021-02-031-2/+2
|
* Screen.c: Fix fullscreen (onescreen) at startupUlrich Sibiller2021-02-031-2/+31
| | | | Fixes ArcticaProject/nx-libs#991
* Screen.c: remove superflous code that produces a crashUlrich Sibiller2021-01-161-6/+0
| | | | Fixes ArcticaProject/nx-libs#987
* Screen.c: clarify that characters are comparedUlrich Sibiller2021-01-161-2/+2
|
* Screen.c: check for malloc failuresUlrich Sibiller2021-01-151-0/+39
| | | | PVS finding: "V522 There might be dereferencing of a potential null pointer"
* nxagent: make full screen mode selectable at startupUlrich Sibiller2021-01-151-1/+7
| | | | | | | | fullscreen= now accepts the new value "2" for a fullscreen covering only one screen. -geometry and geometry= now know additional keywords "allscreens" and "onescreen". Fixes ArcticaProject/nx-libs#923
* nxagent: handle RegionNil macro as BooleanUlrich Sibiller2021-01-151-1/+1
| | | | just as the rest of the Xserver is alsow doing
* nxagent: make nxagentShadowResize a BooleanUlrich Sibiller2021-01-151-1/+1
|
* nxagent: make nxagentDoFullgeneration a BooleanUlrich Sibiller2021-01-151-1/+1
|
* nxagent: treat all Traps as Booleans everywhereUlrich Sibiller2021-01-151-8/+8
|
* nxagent: make Desktop, Rootless and Binder options Booleans (again)Ulrich Sibiller2021-01-151-4/+4
| | | | | They have been changed to tri-state variables (1, 0 and UNDEFINED) between nxagent 1.5.0-90 and -93, for no obvious reason.
* nxagent: treat several nxagentOptions as real BooleansUlrich Sibiller2021-01-151-2/+2
| | | | | | | Adaptive, Composite, DeviceControl, DeviceControlUserDefined, IgnoreVisibility, InhibitXkb, Nested, Menu, MagicPixel, Persistent, Reset, ResetzKeyboardAtResume, SharedMemory, SharedPixmaps, Streaming, UseDamage, ViewOnly, Xdmcp, Xinerama
* nxagent: treat DesktopResize and nxagentResizeDesktopAtStartup as BooleansUlrich Sibiller2021-01-151-3/+3
| | | | The already where Booleans but where not using True/False values everywhere
* nxagent: make Fullscreen and AllScreens BooleansUlrich Sibiller2021-01-151-5/+8
| | | | | There's no need/sense in having a tri-state with the third state being UNDEFINED.
* Screen.c: fix indentation in nxagentMaximizeToFullScreenUlrich Sibiller2020-11-031-37/+37
|
* Screen.c: some more (cosmetic) changesUlrich Sibiller2020-10-171-61/+49
|
* Screen.c: scope improvementsUlrich Sibiller2020-10-171-25/+13
|
* Screen.c: move attributes/valuemask to inner scopesUlrich Sibiller2020-10-171-11/+9
|
* Screen.c: drop unneccessary mask variableUlrich Sibiller2020-10-171-9/+3
|
* Screen.c: remove another pointless code blockUlrich Sibiller2020-10-171-10/+0
| | | | | Setting nxagentDefaultWindow[pScreen->myNum] is pointless because it is overwritten in the next code block...
* Screen.c: remove code that will have no effectUlrich Sibiller2020-10-171-5/+0
| | | | | | | setting a value for an attribute in the structure is pointless if you do not set the valuemask accordingly. Adding the missing valuemask code here would also be pointless because the valuemask is set to a fixed value later on. Therefore we can drop this code here.
* Screen.c: scope improvementUlrich Sibiller2020-10-171-1/+2
|
* Screen.c: cleanup auto dpi handlingUlrich Sibiller2020-10-171-6/+9
| | | | new code is easier to read
* Screen.c: simplify nxagentResizeScreenUlrich Sibiller2020-10-171-12/+13
|
* Screen.c: improve output of nxagentPrintAgentGeometryUlrich Sibiller2020-10-171-8/+12
|
* Screen.c: improve debug outputUlrich Sibiller2020-10-171-13/+29
|
* nxagent: add names to some windows in DEBUG modeUlrich Sibiller2020-10-171-6/+45
|
* nxagent: Prevent resize loopUlrich Sibiller2020-10-171-6/+15
| | | | | | This only happened with certain window managers like mutter. Fixes ArcticaProject/nx-libs#925
* Screen.c: fix resizing bug with mutter window managerUlrich Sibiller2020-10-171-1/+1
| | | | | | | Not really sure why I introduced the client check years ago. Grabbed is grabbed, so I don't see a reason implementing it this way. Fixes ArcticaProject/nx-libs#925.
* Screen.c: fix missing type in DEBUG modeUlrich Sibiller2020-05-071-2/+2
|
* Screen.c: fix wrong debug statementUlrich Sibiller2020-05-071-1/+1
|
* Screen.h: improve NXAGENT_ARTSD prototype definitionUlrich Sibiller2020-05-071-3/+0
|
* Screen.c: formatting fixesUlrich Sibiller2020-05-071-7/+8
|
* Screen.c: spelling fixUlrich Sibiller2020-05-071-1/+1
|
* Screen.c: activate fallback to dix blankingUlrich Sibiller2020-04-071-2/+2
| | | | | | We have no hardware that could blank the screen for us. So let nxagentSaveScreen return False in some situations to let dix do the default action.
* Screen.c: document nxagentSaveScreenUlrich Sibiller2020-04-071-22/+37
|
* nxagent: re-implement timeout handlingUlrich Sibiller2020-04-071-78/+7
| | | | | | Option -timeout used the screensaver facility. This patch changes that to an own timer that is independent. This effectly means we can drop most of the derived screensaving stuff in a follow-up commit.
* nxagent: rename variables that shadow globalsUlrich Sibiller2020-01-251-31/+31
|
* Screen.c: harmonize size/wmhints codeUlrich Sibiller2020-01-061-21/+11
|
* nxagent: drop CYGWIN and WIN32 definesUlrich Sibiller2020-01-061-34/+0
|
* Screen.c: code simplification/scopeUlrich Sibiller2020-01-061-266/+185
|