Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Clipboard.c: use designated initializers where appropriate | Ulrich Sibiller | 2019-09-29 | 1 | -41/+24 | |
| | ||||||
* | Clipboard.c: factor out nxagentReplyRequestSelection | Ulrich Sibiller | 2019-09-29 | 1 | -27/+38 | |
| | ||||||
* | Clipboard.c: TIMESTAMP is a special server target | Ulrich Sibiller | 2019-09-29 | 1 | -0/+7 | |
| | | | | | This is not a functional change, it only helps in clearer debugging output. | |||||
* | Clipboard.c: introduce macros CLINDEX and WINDOWID | Ulrich Sibiller | 2019-09-29 | 1 | -22/+24 | |
| | ||||||
* | Clipboard.c: simplify nxagentGetClipboardWindow | Ulrich Sibiller | 2019-09-29 | 1 | -12/+3 | |
| | | | | | | | The second parameter was always NULL, so remove it. Also remove some debugging output which distracts while debugging as the function is called from ProcChangeProperty for _every_ property, also non-clipboard related ones. | |||||
* | Clipboard.c: drop serverCLIPBOARD | Ulrich Sibiller | 2019-09-29 | 1 | -5/+1 | |
| | | | | we reference lastSelectionOwner[nxagentClipboardSelection].selection everywhere. | |||||
* | Clipboard.c: clientAccum is only used for debugging, add DEBUG ifdefs | Ulrich Sibiller | 2019-09-29 | 1 | -5/+7 | |
| | ||||||
* | Clipboard.c: rename some variables | Ulrich Sibiller | 2019-09-29 | 1 | -10/+10 | |
| | | | | | | | nxagentClipboardAtom -> serverCLIPBOARD nxagentTimestampAtom -> serverTIMESTAMP This is to match the names of the other server atom variables. | |||||
* | Clipboard.c: introduce nxagentFind*Index functions | Ulrich Sibiller | 2019-09-29 | 1 | -39/+30 | |
| | | | | | At some places we were using NumCurrentSelections. We replace that by nxagentMaxSelections because they always have the identical value. | |||||
* | Clipboard.c: introduce nxagent{Clear,Store}SelectionOwner | Ulrich Sibiller | 2019-09-29 | 1 | -13/+22 | |
| | ||||||
* | Clipboard.c: Fix: report timestamps as XA_INTEGER | Ulrich Sibiller | 2019-09-29 | 1 | -2/+2 | |
| | | | | Just as everyone else does. ICCCM is not really clear about this. | |||||
* | Clipboard.c: improve TARGETS request handling | Ulrich Sibiller | 2019-09-29 | 1 | -11/+10 | |
| | ||||||
* | Clipboard.c: merge endTransfer and nxagentSendSelectionNotify | Ulrich Sibiller | 2019-09-29 | 1 | -25/+12 | |
| | | | | endTransfer is the only caller | |||||
* | Clipboard.c: introduce SendSelectionNotifyEventToClient helper | Ulrich Sibiller | 2019-09-29 | 1 | -62/+32 | |
| | ||||||
* | Clipboard.c: introduce SendEventToClient helper | Ulrich Sibiller | 2019-09-29 | 1 | -15/+12 | |
| | ||||||
* | Clipboard.c: introduce SendSelectionNotifyEventToServer | Ulrich Sibiller | 2019-09-29 | 1 | -82/+50 | |
| | | | | fixup! Clipboard.c: introduce XSendNotificationEventHelper | |||||
* | Clipboard.c: introduce central function to abort the transfer | Ulrich Sibiller | 2019-09-29 | 1 | -40/+36 | |
| | ||||||
* | Clipboard.c: do not send notify when pointer is NULL | Ulrich Sibiller | 2019-09-29 | 1 | -4/+9 | |
| | | | | There was only one place where this was checked but we check it always. | |||||
* | Clipboard.c: whitespace fixes | Ulrich Sibiller | 2019-09-29 | 1 | -5/+5 | |
| | ||||||
* | Clipboard.c: fix wrong variable being printed in debugging output | Ulrich Sibiller | 2019-09-29 | 1 | -2/+2 | |
| | ||||||
* | NXdispatch.c: replace hardcoded values by variables from Clipboard.c | Ulrich Sibiller | 2019-09-29 | 1 | -3/+3 | |
| | ||||||
* | Clipboard.c: use SAFE_free | Ulrich Sibiller | 2019-08-06 | 1 | -2/+1 | |
| | ||||||
* | Add nxagentSetSelectionCallback | Ulrich Sibiller | 2019-06-11 | 1 | -0/+69 | |
| | ||||||
* | Clipboard.c: more debugging output | Ulrich Sibiller | 2019-06-11 | 1 | -1/+17 | |
| | ||||||
* | Clipboard.c: Scope improvements | Ulrich Sibiller | 2019-06-11 | 1 | -5/+2 | |
| | ||||||
* | Clipboard.c: fix wrong variable being printed | Ulrich Sibiller | 2019-06-11 | 1 | -1/+1 | |
| | ||||||
* | Clipboard.c: use __func__ everywhere | Ulrich Sibiller | 2018-10-27 | 1 | -59/+58 | |
| | ||||||
* | Clipboard.c: fix fprintf type warnings | Ulrich Sibiller | 2018-10-27 | 1 | -20/+20 | |
| | ||||||
* | Clipboard.c: more DEBUG output | Ulrich Sibiller | 2018-10-27 | 1 | -3/+12 | |
| | ||||||
* | Clipboard.c: Use constant instead of hardcoded value | Ulrich Sibiller | 2018-10-27 | 1 | -1/+1 | |
| | ||||||
* | Clipboard.c: improve nxagentClearSelection() debug code | Ulrich Sibiller | 2018-10-27 | 1 | -5/+1 | |
| | ||||||
* | Clipboard.c: new debug function to reduce duplicate code | Ulrich Sibiller | 2018-10-27 | 1 | -13/+53 | |
| | ||||||
* | Clipboard.c: more debugging info for nxagentGetClipboardWindow() | Ulrich Sibiller | 2018-10-27 | 1 | -3/+3 | |
| | ||||||
* | Clipboard.c: GetWindowProperty() does not return BadMatch | Ulrich Sibiller | 2018-10-27 | 1 | -5/+2 | |
| | ||||||
* | Clipboard.c: whitespace fixes | Ulrich Sibiller | 2018-10-27 | 1 | -3/+0 | |
| | ||||||
* | Clipboard.c: add FIXME | Ulrich Sibiller | 2018-10-27 | 1 | -0/+1 | |
| | ||||||
* | Clipboard.c: Code optimization (missing else) | Ulrich Sibiller | 2018-10-27 | 1 | -2/+1 | |
| | ||||||
* | Clipboard.c: print X errors | Ulrich Sibiller | 2018-10-27 | 1 | -20/+62 | |
| | ||||||
* | Clipboard.c: some scope optimizations | Ulrich Sibiller | 2018-10-27 | 1 | -11/+6 | |
| | ||||||
* | Clipboard.c: add macro for safe XFree calls with ptr clearance | Ulrich Sibiller | 2018-10-27 | 1 | -37/+16 | |
| | ||||||
* | Clipboard.c: introduce helper macros for easier debugging | Ulrich Sibiller | 2018-10-27 | 1 | -48/+59 | |
| | ||||||
* | Clipboard.c: add function for debugging output | Ulrich Sibiller | 2018-10-27 | 1 | -2/+114 | |
| | ||||||
* | Clipboard: print requested target in debugging mode | Ulrich Sibiller | 2018-10-27 | 1 | -7/+31 | |
| | ||||||
* | Clipboard.c: add missing include | Ulrich Sibiller | 2018-06-05 | 1 | -0/+1 | |
| | | | | Fixes ArcticaProject/nx-libs#701 | |||||
* | hw/nxagent: fix spelling errors as reported by codespell | Ulrich Sibiller | 2018-05-24 | 1 | -1/+1 | |
| | ||||||
* | hw/nxagent/: Use <function>(void) rather than <function>(). | Mike Gabriel | 2018-02-26 | 1 | -1/+1 | |
| | ||||||
* | Xserver/hw/nxagent/Clipboard.c: Fix free calls (free back to XFree). | Mike Gabriel | 2017-12-15 | 1 | -3/+3 | |
| | | | | | | | | | | | They have been flawed ever since nxagent came up, as they were Xfree (non-capital f) always, but should have been XFree (capital F, defined in Xlibint.h and part of libNX_X11). . Probably this all should be free() all over the code (bearing in mind, that XFree() returns int, not void. But still... Fixes ArcticaProject/nx-libs#553. | |||||
* | simply free() calls | Ulrich Sibiller | 2017-11-21 | 1 | -10/+4 | |
| | | | | free() can handle NULL so there's no need to check this ourselves | |||||
* | Fix "uninitialised byte(s)" complaints from valgrind | Ulrich Sibiller | 2017-03-02 | 1 | -2/+11 | |
| | ||||||
* | Xserver/dix/atom.c (et al.): Constify atom name strings. | Mike Gabriel | 2017-03-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> |