- 05 Jan, 2020 40 commits
-
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
Using this macro makes the code more readable
-
Ulrich Sibiller authored
We do not need to loop over all selections. We have a helper for that.
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
It makes sense to measure time and set the initialized flag right at the start.
-
Ulrich Sibiller authored
The new code effectively does the same the old one did. But if we change the number of selections the new code will still work correctly while the old one would not.
-
Ulrich Sibiller authored
On reconnect claim the selection ownership if one of nxagent's clients is a selection owner. The code for this was already there but could not work because the lastSelectionOwner array was always dropped at the beginning of nxagentInitClipboard.
-
Ulrich Sibiller authored
Place the allocation directly before the check for success. Use the same order for server and client atoms.
-
Ulrich Sibiller authored
Always report the same list of available targets to internal and external requests.
-
Ulrich Sibiller authored
The code also worked with pWindow being NULL but it did some unnecessary stuff.
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
By splitting it up we can print appropriate debug messages. More important: The code tried to handle the special targets for all other cases where it should only deny the request.
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
We had comparisions for >5000 and <5000, but =5000 was not explicitly handled. In that case the code took an unexpected path.
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
The prototype for nxagentGetClipboardWindow has been changed in 63320437 but the changes have not made it into NXproperty.c...
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
and add debugging information around its checks.
-
Ulrich Sibiller authored
expect an index instead of a pointer All calls referenced lastSelectionOwner so let the function directly use it and only pass the required index.
-
Mike Gabriel authored
Attributes GH PR #884: https://github.com/ArcticaProject/nx-libs/pull/884
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
no more hardcoded string length
-
Ulrich Sibiller authored
no more hardcoded string length
-
Ulrich Sibiller authored
no more hardcoded string length
-
Ulrich Sibiller authored
Error.c: In function ‘nxagentGetSessionPath’: Error.c:543:62: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 253 [-Wformat-truncation=] snprintf(nxagentSessionDir, DEFAULT_STRING_LENGTH, "%s/C-%s", rootPath, nxagentSessionId); ^~ ~~~~~~~~~~~~~~~~ Error.c:543:5: note: ‘snprintf’ output 4 or more bytes (assuming 259) into a destination of size 256 snprintf(nxagentSessionDir, DEFAULT_STRING_LENGTH, "%s/C-%s", rootPath, nxagentSessionId); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Ulrich Sibiller authored
Dialog.c: In function ‘nxagentLaunchDialog’: Dialog.c:320:53: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 256 [-Wformat-truncation=] snprintf(dialogDisplay, sizeof(dialogDisplay), "%s", nxagentDisplayName); ^~ ~~~~~~~~~~~~~~~~~~ Dialog.c:320:5: note: ‘snprintf’ output between 1 and 1024 bytes into a destination of size 256 snprintf(dialogDisplay, sizeof(dialogDisplay), "%s", nxagentDisplayName); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Mike Gabriel authored
Attributes GH PR #607: https://github.com/ArcticaProject/nx-libs/pull/607
-
Ulrich Sibiller authored
Make nxproxy and nxagent print an arbitrary version number by running make NX_VERSION_CUSTOM="myvers". nxagent and nxproxy will then show this in addition to the original version number: NXPROXY - Version myvers (3.5.99.22) NXAGENT - Version myvers (3.5.99.22) Fixes ArcticaProject/nx-libs#606
-
Mike Gabriel authored
Attributes GH PR #883: https://github.com/ArcticaProject/nx-libs/pull/883
-
Ulrich Sibiller authored
XlibAtom should be used wherever remote atoms are handled. This is important as Xlib data types and server data types of the same name do not always have identical sizes. See also https://lists.freedesktop.org/archives/xorg-devel/2015-August/047245.html
-
Mike Gabriel authored
Attributes GH PR #869: https://github.com/ArcticaProject/nx-libs/pull/869
-