Age | Commit message (Collapse) | Author | Files | Lines |
|
The high bit of an X11 event id is set to 0 for events generated by the
server, 1 for events sent from another client via SendEvent requests.
Previously xscope printed:
..............EVENT: **INVALID** (150)
Now it prints:
..............EVENT: ConfigureNotify
source: SendEvent
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
All errors currently recognized by xscope fall into two forms,
with or without a 32-bit value to print as a bad value, so use
common implementations for those two forms so we can stop
duplicating that code for every new extension-defined error.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Used for GC struct members, which are defined in the protocol as 32-bit,
so no need to waste time and memory copying into 64-bit longs everywhere
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Adds a getreqlen inline function to handle the big requests check.
As noted in the comment, it must be called *before* the printreqlen
macro does its own check, since printreqlen "fixes" the buf pointer
when it's done to align all the remaining fields with their correct
positions after skipping over the extra big requests 32-bit length
field after the normal 16-bit length field.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
instead of shifting the whole word as each byte is loaded into place
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Performed with util/modular/x-indent-all.sh, followed by manual fixups
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
It's already defined in scope.h, which is more widely #included and
a more logical home for it.
Clears a bunch of gcc warnings of:
scope.h:125:13: warning: redundant redeclaration of ‘ScopeEnabled’
x11.h:266:13: note: previous declaration of ‘ScopeEnabled’ was here
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
We still allocate one ConnState struct for every possible FD up front
instead of resizing as needed.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Filled in most, but not all, of the details for new & existing requests
Corrected print-outs several existing requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Allows extensions to register their own decoders for GenericEvents,
though none do, since XInput isn't decoded yet
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Fixes corruption of big requests data in -v4/raw output
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Conflicts:
common.c
decode11.c
fd.c
fd.h
print11.c
prtype.c
scope.c
scope.h
server.c
table11.c
x11.h
xscope.man
|
|
|
|
|
|
|
|
Conversion to ANSI C
SysVR4 support
Conversion of networking code to use xtrans
|
|
|