Daniel Bulant
eeb9d58310
Parse FocusIn and FocusOut events
2021-08-05 15:54:39 +02:00
Spaceboy Ross
66bc53624d
Begining of fixing sidorares/node-x11#182
2018-11-14 12:05:24 -08:00
Aliaksei Chapyzhenka
08a6ae573e
added dummy function "stash" to help browserify bundler with require prefetch
2017-04-20 22:20:35 -07:00
Svetlana Linuxenko
9b6492b34a
double import of templates
2016-11-23 20:03:56 +02:00
Santiago Gimeno
4f241ba2b3
Cache X11 extensions
2016-10-06 12:11:59 +02:00
Andrey Sidorov
60f8b08037
add unused IDs buffer
2016-05-18 20:22:24 +10:00
Ian Scott
1f5e2310a6
Fix remoteFamily on Node v0.10
2016-05-16 09:45:39 -07:00
Ian Scott
a42f043768
Emit error when handshake fails, such as with bad xauth
2016-05-13 18:59:41 -07:00
Ian Scott
e8883275bf
Fix auth for remote hosts and handle different auth families
...
- Use the remote address to find the auth cookie instead of the local
hostname
- Read family type as big endian in Xauthority file
- Don't upgrade 127.0.0.1 TCP connections to unix domain socket (libX11
and xcb don't do this)
- Don't error if no auth cookie is found; continue without auth
2016-03-21 16:00:52 -07:00
plehmkuhl
4fd0385911
Fixed datatype returned by message_type on ClientMessage event.
...
Added Testcase.
2016-02-03 11:08:58 +01:00
plehmkuhl
27c70c7315
Reads nessage_type from ClientMessage.
...
See: https://tronche.com/gui/x/xlib/events/client-communication/client-message.html
2016-02-02 16:26:41 +01:00
Andrey Sidorov
70519cbb38
handle Internet cookie addresses correctly. Fixes #121
2016-01-15 16:01:54 +11:00
Andrey Sidorov
7e22a439e8
don't overwrite ClientMessage type
2016-01-15 00:37:15 +11:00
Santiago Gimeno
dbe2d97bee
src: fix some more events parsing
...
- DestroyNotify, UnmapNotify, MapNotify and MapRequest.
- Add some tests.
2015-10-01 11:53:04 +02:00
Santiago Gimeno
3b18e43fe6
src: fix CreateNotify parsing and add new test
...
- The first 4 fields in an event 'CCSL' are already unpacked in
expectReplyHeader. No need to get the L field again: it is already in the
'extra' variable.
2015-10-01 11:35:26 +02:00
Andrey Sidorov
28fdbadb0b
fix CreateNotify parsing #102
2015-09-29 23:18:11 +10:00
Ian Scott
c00a790c2b
Fix XClient arguments
2015-06-25 15:57:20 -07:00
Ian Scott
2d7d6cbc8f
Fall back to TCP if socket does not exist
...
Also have client emit error on stream error if there is no initCb.
2015-06-25 15:47:02 -07:00
Ian Scott
3e3f1805a2
Remove debug messages from MappingNotify
2015-01-14 10:08:59 -08:00
Tim Roes
ff73173cd5
feat: fix format of LeaveNotify event
2015-01-03 21:33:06 +01:00
Santiago Gimeno
7c86cedcab
events: fix ConfigureRequest parsing
...
- Add test that would fail without this change.
2014-12-09 10:00:17 +01:00
Andrey Sidorov
b89376a00e
route event to parent if parent id exist
2014-10-08 20:41:45 +11:00
Andrey Sidorov
6643bd97f7
use wid instead of window for consistency
2014-10-08 14:58:47 +11:00
champii
6d6c8d3b9f
Extensions, tests and exemples are now cps-style
2014-09-23 16:09:18 +02:00
champii
48f132b3fe
ConfigureWindow, CreateWindow and CreateGC now give good format size to buffer, fixed some tests
2014-09-23 15:32:48 +02:00
champii
2e2a87f6ff
trying to use PutImage
2014-09-23 15:32:48 +02:00
champii
643c004fb5
removed log
2014-09-23 15:32:48 +02:00
champii
965b5ca997
Test
2014-09-23 15:32:48 +02:00
Andrey Sidorov
421261aaac
add MappingNotify event
2014-05-02 14:37:37 +10:00
Santiago Gimeno
4376fcac49
Fix parsing of CreateNotify event
2014-03-21 12:29:22 +01:00
Andrey Sidorov
73dda10b1a
glx error parsers #49
2014-03-08 19:05:21 +11:00
Andrey Sidorov
0113db66af
unly delete seq2stack entry when in debug mode
2014-03-08 18:09:54 +11:00
Andrey Sidorov
56001da581
use property setter in debug mode to map seq num to stack trace
2014-03-08 18:04:09 +11:00
Andrey Sidorov
ebb77199fc
fix in error parsing: bad_value, min/maj opcode now calculated correctly
2014-03-03 11:55:44 +11:00
Santiago Gimeno
1e36e5d426
Fix some event names
...
- ButtonPress, ButtonRelease, MotionNotify and EnterNotify
2014-01-28 12:14:19 +01:00
Santiago Gimeno
69825534f6
Fix ConfigureNotify event name
2014-01-28 10:59:49 +01:00
Santiago Gimeno
ec6c56a191
Expose eventMask in X client.
2013-11-19 13:09:12 +01:00
Santiago Gimeno
690d24413b
Add ClientMessage event
2013-11-18 17:34:27 +01:00
Santiago Gimeno
90148d64a8
Update DestroyNotify and MapNotify handling
...
- To be better aligned with the spec.
2013-11-05 10:22:26 +01:00
Santiago Gimeno
85773377e9
Handle UnmapNotify event
2013-11-05 10:21:42 +01:00
Dominic Tarr
7fc33f3bab
add EnterWindow event, and give events names
2013-10-30 11:12:15 -07:00
Santiago Gimeno
9ee3721dd2
Really fix the parsing of the event type field
...
- Typo: use the bitwise operator and not the comparison operator
2013-05-22 14:58:32 +02:00
Santiago Gimeno
1ad9c385b5
Fix the parsing of the type field in Event msgs
...
- According to the standard, the most significant bit of the 8-bit type code is
used to flag if the event was generated from a SendEvent request. See Event
Format section in Chapter 1 of the specification.
2013-05-10 09:45:51 +02:00
Santiago Gimeno
c1efb0c840
Cache atoms to avoid redundant requests
...
- Once cached we really don't need to send InternAtom and AtonName requests, so
we bypass them.
- Add atom_names property to XClient: it's basically the atoms object property
reversed. It'll be used to cache the atom names.
- Add some tests.
- Issue #22 .
2013-02-28 14:43:26 +01:00
Andrey Sidorov
3f064b218e
get rid of lib/x11 nested subdirectory, lib/x11 -> lib
2013-02-19 16:23:53 +11:00