aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Atoms.c
Commit message (Collapse)AuthorAgeFilesLines
* nxagent: Free atom map on terminationUlrich Sibiller2020-05-071-2/+13
|
* Atoms.c: refine comment on NX_CUT_BUFFER_SERVERUlrich Sibiller2020-05-071-3/+2
|
* Atoms.c: scope improvementsUlrich Sibiller2020-05-071-4/+3
|
* Atoms.c: remove unused return value of nxagentInitAtomsMapUlrich Sibiller2020-05-071-4/+4
|
* Atoms.c: always duplicate strings before storing them in privAtomMapUlrich Sibiller2020-05-071-26/+11
| | | | | Otherwise we will never be able to free the list because we do not know if free() is allowed or not.
* Atoms.c: some code cleanupUlrich Sibiller2020-05-071-55/+71
| | | | add else clauses, improve debugging, add comments
* Atoms.c: add missing freeUlrich Sibiller2020-05-071-0/+2
| | | | not a real memleak since it is followed by a FatalError...
* Atoms.c: remove one obsolete FIXMEUlrich Sibiller2020-05-071-4/+3
| | | | The FIXME just described what the following function actually implements...
* Atoms.c: describe atoms usageUlrich Sibiller2020-01-061-0/+2
|
* Atoms.c: describe atoms usageUlrich Sibiller2020-01-061-11/+44
|
* Clipboard.c: rename variables/atoms to better reflect their meaningUlrich Sibiller2020-01-051-1/+4
| | | | | | | Unfortunately we cannot rename NX_CUT_BUFFER_SERVER, too, without breaking compatibility because this one is used to signal nomachine's nxclient after the splash screen is gone (see Splash.c, Window.c and ArticaProject/nx-libs#838)
* Clipboard: align reported targetsUlrich Sibiller2020-01-051-0/+1
| | | | | Always report the same list of available targets to internal and external requests.
* nxagent: Use XlibAtom data type where appropriateUlrich Sibiller2020-01-051-10/+10
| | | | | | | | 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
* Clipboard.c: translate internal to external atomUlrich Sibiller2019-09-291-0/+1
| | | | | | | | serverClientCutProperty is the external equivalent of the internal clientCutProperty. We need it on the server side, too, because we use the property on the serverWindow on the real X server. We could (mis)use serverCutProperty here but this might introduce race conditions when both sides request selections simultaneously.
* Atoms.[ch]: drop unused return code of nxagentInitAtoms()Ulrich Sibiller2019-09-291-4/+1
|
* Atoms.c: remove unused parameter from nxagentInitAtomsUlrich Sibiller2019-09-291-1/+1
|
* Atoms.c: code cleanupUlrich Sibiller2019-09-291-74/+54
| | | | no functional change
* Atoms.c: fix wrong variable referenceUlrich Sibiller2019-09-291-1/+1
|
* Atoms.c: add FIXMEUlrich Sibiller2019-09-291-0/+1
|
* nxagent: drop unused DisplayLatencyUlrich Sibiller2019-09-291-12/+0
|
* Atoms.c: fix wrong fprintf formatUlrich Sibiller2019-09-291-1/+1
|
* Atoms.c: use SAFE_XFree and SAFE_free macrosUlrich Sibiller2019-08-061-10/+6
|
* nxagent: use nxagentWMIsRunning as Bool all over the placeUlrich Sibiller2018-10-221-3/+3
| | | | | | has been used as integer sometimes (technically correct, but not nice) Fixes ArcticaProject/nx-libs#698
* Atoms.c: more debugging outputUlrich Sibiller2018-07-031-0/+29
|
* hw/nxagent: fix spelling errors as reported by codespellUlrich Sibiller2018-05-241-6/+6
|
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-2/+2
|
* hw/nxagnet/Atoms.c: In DEBUG mode, we need validateString() which is not ↵Mike Gabriel2017-06-301-0/+5
| | | | statically defined in Utils.h. Thus including it for DEBUG builds.
* Xserver/dix/atom.c (et al.): Constify atom name strings.Mike Gabriel2017-03-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inspired by X.org commits: commit 08093c25a91c07ab8af7cece9bba738b827cfd1b Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Mon Oct 24 23:16:30 2011 -0700 Convert some malloc + strncpy pairs into strndup calls Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> commit 816b79dd061e9839cec94a4986a7820b70ca8a7f Author: Mikhail Gusarov <dottedmag@dottedmag.net> Date: Thu May 13 03:45:21 2010 +0700 Remove useless casts Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Keith Packard <keithp@keithp.com> This PR ships a tiny change in MakeAtom, that we adopted. We did not adopt the full commit. commit 5623c27700b7b23a8dbbd8c8f45e5d4fa0c667e3 Author: Alan Coopersmith <alan.coopersmith@sun.com> Date: Mon Feb 2 19:25:14 2009 -0800 Constify atom name strings Changes MakeAtom to take a const char * and NameForAtom to return them, since many callers pass pointers to constant strings stored in read-only ELF sections. Updates in-tree callers as necessary to clear const mismatch warnings introduced by this change. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-061-7/+15
| | | | that NoMachine placed there own copyright statement in.
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-1/+1
| | | | with system-wide shared libraries.
* Imported nxagent-3.5.0-2.tar.gznxagent/3.5.0-2Reinhard Tartler2011-10-101-16/+16
| | | | | | | | Summary: Imported nxagent-3.5.0-2.tar.gz Keywords: Imported nxagent-3.5.0-2.tar.gz into Git repository
* Imported nxagent-3.4.0-8.tar.gznxagent/3.4.0-8Reinhard Tartler2011-10-101-13/+15
| | | | | | | | Summary: Imported nxagent-3.4.0-8.tar.gz Keywords: Imported nxagent-3.4.0-8.tar.gz into Git repository
* Imported nxagent-3.4.0-5.tar.gznxagent/3.4.0-5Reinhard Tartler2011-10-101-1/+1
| | | | | | | | Summary: Imported nxagent-3.4.0-5.tar.gz Keywords: Imported nxagent-3.4.0-5.tar.gz into Git repository
* Imported nxagent-3.4.0-3.tar.gznxagent/3.4.0-3Reinhard Tartler2011-10-101-16/+14
| | | | | | | | Summary: Imported nxagent-3.4.0-3.tar.gz Keywords: Imported nxagent-3.4.0-3.tar.gz into Git repository
* Imported nxagent-3.4.0-16.tar.gznxagent/3.4.0-16Reinhard Tartler2011-10-101-16/+16
| | | | | | | | Summary: Imported nxagent-3.4.0-16.tar.gz Keywords: Imported nxagent-3.4.0-16.tar.gz into Git repository
* Imported nxagent-3.4.0-11.tar.gznxagent/3.4.0-11Reinhard Tartler2011-10-101-15/+17
| | | | | | | | Summary: Imported nxagent-3.4.0-11.tar.gz Keywords: Imported nxagent-3.4.0-11.tar.gz into Git repository
* Imported nxagent-3.2.0-10.tar.gznxagent/3.2.0-10Reinhard Tartler2011-10-101-0/+1
| | | | | | | | Summary: Imported nxagent-3.2.0-10.tar.gz Keywords: Imported nxagent-3.2.0-10.tar.gz into Git repository
* Imported nxagent-3.1.0-2.tar.gznxagent/3.1.0-2Reinhard Tartler2011-10-101-0/+785
Summary: Imported nxagent-3.1.0-2.tar.gz Keywords: Imported nxagent-3.1.0-2.tar.gz into Git repository