Commit graph

7 commits

Author SHA1 Message Date
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
Santiago Gimeno
e5be17ac46 src: fix CreateWindow attributes encoding
- Every attribute must have 4 byte length.
- Add test.
2014-12-09 10:33:19 +01:00
Andrey Sidorov
3f064b218e get rid of lib/x11 nested subdirectory, lib/x11 -> lib 2013-02-19 16:23:53 +11:00
Santiago Gimeno
4508f9e93d Change createClient signature
- The new signature is:

  createClient(options, initCB), where
     - options is an optional object that defines different parameters such as
               display, etc.
     - initCB is an optional callback with the signature: function(err, display)
- The initCB is going to be called with an error ONLY if the connection to the X
  server fails. Further errors in the server connection will be 'emitted'.
- Update tests and test-runner.js accordingly.
- Update README.
2012-12-19 09:34:19 +01:00
Andrey Sidorov
255081192e assertion fixed 2012-06-08 17:07:01 +10:00
Andrey Sidorov
e631e6fac6 CreateWindow test 2012-06-01 18:17:55 +10:00