aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
Commit message (Collapse)AuthorAgeFilesLines
* Xserver/hw/nxagent/Screen.c: Drop commented out code. Functionality now ↵Mike Gabriel2018-03-071-16/+0
| | | | implemented in intersect_bb() function.
* hw/nxagent/Screen.c: Cover Xinerama bounding box corner cases.Mike Gabriel2018-03-071-16/+81
| | | | | | | | | | | | | | | | | If the agent window is moved around on screen, it can happen that it is moved into an invisible area of the real Xserver, we calls this "beyond the bounding box". . If the agent window is partially beyond the bounding box, we don't want Xinerama to re-adjust the RandR parameters inside the agent. Near the bounding box, the session shall stay intact. . This means, desktop env wise, the desktop session control elements can be moved (with the agent window) into the invisible areas of the real Xserver and moved out again without RandR events arriving inside the agent session. Fixes ArcticaProject/nx-libs#662.
* nx-X11/programs/Xserver/hw/nxagent/Init.c: disable DPMS support within nxagent.Mihai Moldovan2018-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keeping it enabled leads to nxagent consuming 100% of CPU resources after some time. Older code used three different timers for each DPMS mode (standby, suspend, off), with each timer checking that the elapsed idle time is strictly less than the DPMS mode timeout value. Newer code started merging DPMS and ScreenSaver timers into a single one, with checking DPMS modes and timeouts in a fall-through fashion. The code expects that, if a timeout is reached, the mode is set accordingly, so that the old timeout is disregarded next time. Since we stub out DPMSSetMode() in nxagent, this doesn't happen. In this case, the old DPMS timeout will be checked the next time around and we will be calculating DPMS_MODE_TIMEOUT - IDLE_TIME. If IDLE_TIME is bigger than DPMS_MODE_TIMEOUT, we run into problems with unsigned integers. What happens next will be *another* overflow once DoTimers() is executed and from that function SetTimers(), which will add the current timestamp to the timeout value. Later functions subtract the current timestamp again (which will be even higher since some time elapsed) and underflow the value again. It looks like this leads to consistent firing of the timer - something we do not want to have. For new, disable DPMS support in nxagent. We do not execute it on actual hardware that could change DPMS modes. At a later time, implementing a DPMS timeout/mode passthrough to the connected X server/display might be beneficial. Fixes: ArcticaProject/nx-libs#671
* hw/nxagent/Screen.c: Settle down with 96 DPI as the default resolution, if ↵Simon Matter2018-03-011-1/+1
| | | | | | nothing better can be detected. Fixes ArcticaProject/nx-libs#668.
* release 3.5.99.143.5.99.14Mike Gabriel2018-02-281-1/+1
|
* os: hide ttyxx optionUlrich Sibiller2018-02-281-3/+0
| | | | is used nowhere anyway
* 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.
* Lift xkb to xorg-xserver-7.1/1.1.0 stateUlrich Sibiller2018-02-281-8/+2
| | | | | | | In XORG-7_1 xkbconfig.c had been dropped. We must keep this file because it is used by hw/nxagent/Keyboard.c to load the xkb configuration file. Maybe we should move the relevant code to there or drop xkb configuration file support from nxagent.
* nxagent: Also provide auto DPI feature via nx/nx option 'autodpi', taking ↵Mike Gabriel2018-02-272-0/+24
| | | | only effect on session startups.
* nxagent: Auto-detect client-side DPI at session startup.Simon Matter2018-02-274-6/+64
|
* {nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1,nxproxy/man/nxproxy.1}: ↵Mihai Moldovan2018-02-271-1/+1
| | | | magicpixel takes a boolean argument for now.
* nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1: remove empty line on top ↵Mihai Moldovan2018-02-271-1/+0
| | | | | | of file. Fixes: ArcticaProject/nx-libs#664
* Lift mi to xorg-xserver-7.1/1.1.0 stateUlrich Sibiller2018-02-271-3/+2
| | | | I left out glx changes to miinitext.c for now.
* hw/nxagent/: Stop using non-portable '__progname', set up our own ↵Mike Gabriel2018-02-262-5/+7
| | | | 'nxagentProgName' instead and pass it around where needed.
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-2628-94/+94
|
* 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-264-4/+17
| | | | Fixes ArcticaProject/nx-libs#653.
* Transfer previous dix changes into hw/nxagentUlrich Sibiller2018-02-261-21/+31
|
* Lift dix to xorg-xserver-1.3.0.0 state - non-functional changes onlyUlrich Sibiller2018-02-261-2/+1
|
* Lift dix to xorg-xserver-1.3.0.0 stateUlrich Sibiller2018-02-263-11/+4
|
* Lift dix to xorg-xserver-7.1/1.1.0 stateUlrich Sibiller2018-02-261-2/+2
|
* nxagent: Add support for optionally enabling/disabling the magic pixel feature.Mike Gabriel2018-02-265-1/+34
| | | | Fixes ArcticaProject/nx-libs#657.
* Revert "NXhsm.c: add missing code"Mihai Moldovan2018-02-091-20/+6
| | | | | | | | | | | | | | This reverts commit c804d99f2c4ea21e37cc8f6c3168b7b79d0d721a. It seems like the missing code was missing for a good reason. Including it leads to very strange issues when coupled with libXcomp and using connection speed settings lower than LAN (and even on LAN some icons are not showing up correctly, e.g., when using MATE). Further investigation on why this happens pending and might happen at a later time. Fixes: ArcticaProject/nx-libs#656
* Window.c: fix TEST/DEBUG outputUlrich Sibiller2018-02-051-3/+3
|
* Split.c: make nxagentWaitDrawable TEST messages look like all the othersUlrich Sibiller2018-02-051-5/+5
|
* Split.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-2/+2
|
* Splash.c: Fix wrong function names in TEST/DEBUG outputUlrich Sibiller2018-02-051-6/+6
|
* Screen.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-1/+1
|
* Rootless.c: Fix wrong function name in WARNING outputUlrich Sibiller2018-02-051-1/+1
|
* Reconnect.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-10/+10
|
* Pixmap.c: Fix wrong function names in TEST/WARNING outputUlrich Sibiller2018-02-051-2/+2
|
* Events.c: change scope of XButtonEvent struct and clear it before useUlrich Sibiller2018-02-051-2/+3
|
* Events.c: Fix wrong function name in TEST outputUlrich Sibiller2018-02-051-1/+1
|
* Dialog.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-1/+1
|
* Composite.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-2/+2
|
* Client.c: Fix wrong function names in DEBUG/WARNING outputUlrich Sibiller2018-02-051-2/+2
|
* NXdispatch.c: add FIXMEUlrich Sibiller2018-02-051-0/+1
|
* NXdispatch.c: fix wrong indentationUlrich Sibiller2018-02-051-6/+6
|
* Handlers.c: Fix wrong function names in TEST outputUlrich Sibiller2018-02-051-5/+5
|
* NXhsm.c: drop setting of sequence numberUlrich Sibiller2018-02-021-1/+0
| | | | is done in WriteEventsToClient
* NXhsm.c: add missing codeUlrich Sibiller2018-02-021-6/+20
| | | | This code was already existing in Xorg 6.6, but never in NX, for whatever reason.
* release 3.5.99.133.5.99.13Mike Gabriel2018-01-161-1/+1
|
* hw/nxagent/Screen.c: Additionally check for noRRXineramaExtension set to ↵Mike Gabriel2018-01-161-1/+1
| | | | | | FALSE before using the nxagentAdjustRandRXinerama() function and providing a Xinerama-like user experience. Fixes ArcticaProject/nx-libs#634.
* Display.c: drop helper variable in loopUlrich Sibiller2018-01-071-4/+2
|
* Error.c: replace malloc+strcpy by strdupUlrich Sibiller2018-01-071-5/+3
|
* Events.c: add FIXMEUlrich Sibiller2018-01-071-0/+1
|
* Keyboard.c: rework string allocation/buildingUlrich Sibiller2018-01-071-14/+10
|
* Keystroke.c: replace calloc + 2 * strcpy by asprintfUlrich Sibiller2018-01-071-3/+1
|
* Font.c: replace malloc + strcpy by strdup + fix memleakUlrich Sibiller2018-01-071-2/+3
|
* Font.c: free possibly allocated memUlrich Sibiller2018-01-071-0/+5
| | | | even if we issue a FatalError afterwards