aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* debian/rules: Neither overzealously remove nx-X11/Makefile.Mike Gabriel2017-12-141-1/+0
|
* debian/rules: Don't remove our main Makefile.Mike Gabriel2017-12-141-1/+0
|
* debian/rules: Fix override_dh_clean target for older Debian/Ubuntu versions.Mike Gabriel2017-12-141-44/+64
|
* Add missing/renamed patches. (Ouch!).Mike Gabriel2017-12-142-0/+56
|
* nx-libs.spec: Add missing BuildRequires and fix paths to files.Mike DePaulo2017-12-141-2/+8
| | | | Fixes ArcticaProject/nx-libs#516.
* debian/control: Set Section: to "libs" for libnx-x11-6.Mike Gabriel2017-12-141-0/+1
|
* debian/control: All Priority: extras packages are required to be changed to ↵Mike Gabriel2017-12-141-1/+1
| | | | Priority: optional by recent Debian Policy.
* Merge branch 'uli42-pr/improve_keyboard_light' into 3.6.xMike Gabriel2017-12-144-113/+181
|\ | | | | | | Attributes GH PR #591: https://github.com/ArcticaProject/nx-libs/pull/591
| * nxagent manpage: extend description of keyboard optionUlrich Sibiller2017-12-141-4/+7
| |
| * Events.c/h: Rename & restructure some Xkb functionsUlrich Sibiller2017-12-142-22/+22
| | | | | | | | | | nxagentInitKeyboardState -> nxagentInitXkbKeyboardState nxagentHandleKeyboardEvent -> nxagentHandleXkbKeyboardStateEvent
| * Keyboard.c: Replace some memsets by zero initializationUlrich Sibiller2017-12-141-6/+3
| |
| * Keyboard.c: Fix indentationUlrich Sibiller2017-12-141-13/+13
| |
| * Keyboard.c: set variables to NULL after freeUlrich Sibiller2017-12-141-0/+3
| |
| * Keyboard.c: XkbDfltRepeatDelay and XkbDfltRepeatIntervall are int not uintUlrich Sibiller2017-12-141-1/+1
| |
| * Keyboard.c: Use calloc instead of malloc + memsetUlrich Sibiller2017-12-141-5/+1
| |
| * nxagent manpage: Extend keyboard documentationUlrich Sibiller2017-12-141-5/+23
| |
| * Keyboard.c: Make xkblock more robustUlrich Sibiller2017-12-141-1/+21
| | | | | | | | | | | | | | If xorg upstream xkb gets extended one day the previous code would not block new xkb calls even if they would change keyboard settings. So only act on the currently known calls and throw an error for all unknown calls.
| * Keyboard.c: Some code cleanupsUlrich Sibiller2017-12-141-57/+46
| |
| * nxagent manpage: Improve explanation of -noignore and -noxkblockUlrich Sibiller2017-12-141-2/+8
| | | | | | | | Fixes ArcticaProject/nx-libs#257
| * Keyboard.c: Add some comments with changelog explanationsUlrich Sibiller2017-12-141-0/+21
| | | | | | | | This helps understanding the intention of the following code.
| * Keyboard.c: print message class for user messagesUlrich Sibiller2017-12-141-4/+4
| |
| * Keyboard.c: Improve TEST outputUlrich Sibiller2017-12-141-1/+16
|/
* debian/*: Adopt from official Debian package where appropriate.Mike Gabriel2017-12-1322-4030/+1921
|
* Merge branch 'uli42-pr/pre-rrxinerama-fallback' into 3.6.xMike Gabriel2017-12-132-21/+100
|\ | | | | | | Attributes GH PR #602: https://github.com/ArcticaProject/nx-libs/pull/602
| * small code cosmeticsUlrich Sibiller2017-12-131-1/+1
| |
| * always notify on size changesUlrich Sibiller2017-12-131-7/+1
| | | | | | | | this ensures that randr updates its private structures
| * re-implement pre-xinerama behaviourUlrich Sibiller2017-12-131-20/+105
|/ | | | | If -rrxinerama was specified xrandr handling was broken. Adding/using a custom resolution via xrandr was not working anymore.
* nx-X11/programs/Xserver/os/xprintf.c: completely drop NX-related changes.Mihai Moldovan2017-12-131-9/+0
|
* nxcomp/src/Log.cpp: only create a new queue entry if we actually intend to ↵Mihai Moldovan2017-12-111-3/+3
| | | | | | write it out later. Fixes: ArcticaProject/nx-libs#596
* Merge branch 'uli42-pr/fix_shadow_warning' into 3.6.xMike Gabriel2017-12-114-2/+11
|\ | | | | | | Attributes GH PR #594: https://github.com/ArcticaProject/nx-libs/pull/594
| * Silence warning: "ar: 'u' modifier ignored since 'D' is the default"Ulrich Sibiller2017-12-113-0/+9
| | | | | | | | Fixes ArcticaProject/nx-libs#530
| * nxcomp: fix shadow warningUlrich Sibiller2017-12-111-2/+2
|/ | | | | | | | | | | | | | Fixes this: CXX Loop.lo Loop.cpp: In function 'void handleCheckResultInLoop(int&, int&, int&, fd_set&, fd_set&, timeval&, timeval&)': Loop.cpp:14080:68: warning: declaration of 'startTs' shadows a global declaration [-Wshadow] struct timeval &startTs) ^ Loop.cpp:1020:13: note: shadowed declaration is here T_timestamp startTs; Fixes ArcticaProject/nx-libs#545
* Merge branch 'uli42-pr/simplify_xtrans' into 3.6.xMike Gabriel2017-12-111-44/+0
|\ | | | | | | Attributes GH PR #595: https://github.com/ArcticaProject/nx-libs/pull/595
| * Xtranssock.c: simplify code in SocketWritevUlrich Sibiller2017-12-111-44/+0
|/ | | | Code was here twice and could be simply merged.
* Merge branch 'sunweaver-pr/drop-NoMachines-own-Xvasprintf-implementation' ↵Mike Gabriel2017-12-111-50/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | into 3.6.x Attributes GH PR #597: https://github.com/ArcticaProject/nx-libs/pull/597 Reviewed+approved by Mihai Moldovan (via IRC): 2017-12-11: ``` 09:38 < Ionic> okay 09:38 < Ionic> in that case it's probably really best to drop it completely ```
| * Xserver/os/xprintf.c: Drop NoMachine's own implementation of Xvasprintf(). ↵Mike Gabriel2017-12-111-50/+1
|/ | | | | | | | | | | | | | | | | | | | | | Use stock implementation instead. * Reason from NoMachine's NX CHANGELOG for having its own implementation of Xvasprintf() (from around nxagent 3.3.0): - Fixed TR06G02225. The implementation of Xvprintf() has been reviewed to work on more platforms. Previous implementation caused a failure in the build of keyboard map on some platform like Solaris 8 and 9. - Fixed TR03G02198. Reimplemented Xvprintf() in Xserver/os to handle the case in which vsnprintf returned -1. * Reason for removing it again: - Fixes segfaults in SetDefaultFontPath when launching nxagent. - All locations in Xserver/** using the code check for return value of -1. - Solaris 8 and 9 are beyond of our support scope. - Keep more in sync with X.org. - Good moment to drop more GPL-2 code from Xserver's code base.
* nx-X11/programs/Xserver/os/xprintf.c: remove doubly-defined Xscnprintf ↵Mihai Moldovan2017-12-111-22/+2
| | | | | | | function, add missing header includes. Fix up for 1e3a97482840401af9ffcf73db6008ebfe6c1d52, which has been faulty in this regard.
* Merge branch 'Ionic-feature/backport-asprintf' into 3.6.xMike Gabriel2017-12-104-50/+330
|\ | | | | | | Attributes GH PR #592: https://github.com/ArcticaProject/nx-libs/pull/592
| * os/xprintf: add Xvscnprintf and XscnprintfDaniel Kurtz2017-12-102-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from X.org: commit 5c2e2a164d615ab06be28a663734e782614b5cc7 Author: Daniel Kurtz <djkurtz@chromium.org> Date: Wed Apr 18 09:51:51 2012 +0000 os/xprintf: add Xvscnprintf and Xscnprintf Normal snprintf() usually returns the number of bytes that would have been written into a buffer had the buffer been long enough. The scnprintf() variants return the actual number of bytes written, excluding the trailing '\0'. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Backported-to-NX-by: Mihai Moldovan <ionic@ionic.de>
| * Typo in xserver Xvasprintf()Colin Harrison2017-12-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from X.org: commit 1324b0ca9f8a7fdaf03b374c75eb3c9df407c2f1 Author: Colin Harrison <colin.harrison@virgin.net> Date: Fri Dec 10 00:08:24 2010 +0000 Typo in xserver Xvasprintf() I needed this patch in the wrapper around vsnprintf() in os/xprintf.c (MinGW for Windows build) to correct various crashes. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Mihai Moldovan <ionic@ionic.de>
| * Add asprintf() implementation for platforms without itAlan Coopersmith2017-12-104-48/+272
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from X.org: commit c95c1d338fdb62dbe3dba934b97324fa778b7fce Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Sat Nov 27 18:43:12 2010 -0800 Add asprintf() implementation for platforms without it Provides a portable implementation of this common allocating sprintf() API found in many, but not yet all, of the platforms we support. If the platform provides vasprintf() we simply wrap it, otherwise we implement it - either way callers can use it regardless of platform. Since not all platforms guarantee to NULL out the return pointer on failure, we don't either, and require callers to check the return value for -1. The old Xprintf() API is deprecated, but left for compatibility for now. The new API is added in a new header so that it can be used in parts of the server such as hw/xfree86/parser that don't include all the server headers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Includes re-indentation changes from 9838b7032ea9792bec21af424c53c07078636d21. Backported-to-NX-by: Mihai Moldovan <ionic@ionic.de>
* Merge branch 'uli42-pr/fix_memleaks' into 3.6.xMihai Moldovan2017-12-095-26/+57
|\ | | | | | | | | | | | | Attributes GH PR #575: https://github.com/ArcticaProject/nx-libs/pull/575 Fixes: ArcticaProject/nx-libs#569 Fixes: ArcticaProject/nx-libs#573
| * nxcomp: use new macro SAFE_FREE(ptr)Ulrich Sibiller2017-12-094-39/+33
| | | | | | | | | | Should be used instead of free() calls and will clear the pointer after calling free(). This can prevent double-free or use-after-free errors.
| * Loop.cpp: fix more memory leaksUlrich Sibiller2017-12-091-1/+15
| | | | | | | | | | | | | | The thread specific stringstream objects on the stack need to be deleted, not just pop()ed. Fixes ArcticaProject/nx-libs#573 (partially)
| * Loop.cpp: fix two memleaksUlrich Sibiller2017-12-091-4/+19
| |
| * ChannelEndPoint.cpp: fix two memleaksUlrich Sibiller2017-12-091-4/+10
| |
| * nxcomp: simplify free callsUlrich Sibiller2017-12-091-3/+3
| | | | | | | | free() can handle NULL itself
| * nxcomp: fix double freeUlrich Sibiller2017-12-091-0/+2
|/ | | | Fixes ArcticaProject/nx-libs#569
* Merge branch 'uli42-pr/keep_co' into 3.6.xMihai Moldovan2017-12-092-0/+17
|\ | | | | | | Attributes GH PR #582: https://github.com/ArcticaProject/nx-libs/pull/582
| * Reintroduce -co as no-opUlrich Sibiller2017-12-072-0/+17
|/ | | | | | nxagent will abort if it encounters an unknown command line option. As we want 3.6 to be a drop-in replacement for 3.5 we cannot simply drop old options but must accept them as no-op.