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
3e9b5f7faa
ConfigureNotify event parser
2012-12-12 22:33:08 +11:00
Santiago Gimeno
5d4caccca8
A couple of fixes in unpackEvent
2012-08-04 22:27:03 +02:00
Andrey Sidorov
eeba3b1796
inherit errors from Error
2012-07-17 14:47:17 +10:00
Andrey Sidorov
8e1f501701
return roundtrip time in ping() callback
2012-07-17 01:21:28 +10:00
Andrey Sidorov
f3681b9aa2
ping() and close() for connection
2012-07-16 19:48:03 +10:00
Andrey Sidorov
39d905df5f
long stacktrace benchmarks in comments
2012-07-16 14:31:01 +10:00
Andrey Sidorov
7df3e1d3fd
disable long stack trace to improve performance
2012-07-16 14:26:33 +10:00
Andrey Sidorov
2decda57fd
handle sequence overflow (more than 65535 requests in one connection)
2012-07-16 14:18:52 +10:00
Andrey Sidorov
de99f7ec14
SelectionRequest and SelectionNotify events
2012-06-11 23:59:09 +10:00
Andrey Sidorov
f5303b0ad9
PropertyNotify and SelectionClear unpackers
2012-06-11 17:05:23 +10:00
Andrey Sidorov
0b68bbbdb0
initial support to add event parsers from extension
2012-06-08 14:59:35 +10:00
Andrey Sidorov
3eaaadd0da
global variable leak test
2012-06-01 18:17:26 +10:00
Andrey Sidorov
33775da6df
connect using idcorrect DISPLAY
2012-06-01 00:00:31 +10:00
Andrey Sidorov
5098763855
global object pollution fixed
2012-05-31 19:20:38 +10:00
Andrey Sidorov
0fd0e4485a
first integration test
2012-05-31 12:53:45 +10:00
Andrey Sidorov
93cec8ecc7
load BigReq extansion by default
2012-05-01 13:08:19 +10:00
Andrey Sidorov
15bbd67965
end event in client
2012-04-11 16:49:24 +10:00
Andrey Sidorov
a6cb1c2629
more event decoders
2012-02-28 17:32:28 +11:00
Andrey Sidorov
b35752cd28
fix in connection code
2012-01-20 14:37:08 +11:00
Andrey Sidorov
3732cc4e20
keyboard event
2012-01-18 16:48:54 +11:00
Andrey Sidorov
f2f52d92f9
extra fix for $DISPLAY parsing
2011-12-16 09:36:00 +11:00
Andrey Sidorov
f5a65e5a42
open correct socket on local OSX display
2011-12-15 18:05:11 +11:00
Andrey Sidorov
9e0b53c793
associate stack trace for function call with sequence number
2011-09-11 23:02:53 +10:00
sidorares
9b439d3d80
save reference to client before emitting connect event
2011-09-09 11:27:17 +10:00
Andrey Sidorov
a40ba7d874
initial SendEvent implementation
2011-09-07 09:50:19 +10:00
sidorares
0a09793726
require(extension)
2011-09-02 11:52:29 +10:00
sidorares
7ccc7f45ea
XRENDER example added
2011-09-01 10:53:26 +10:00
sidorares
c1ee1fea65
GetKeyboardMapping fix + test
2011-08-30 15:16:07 +10:00
Andrey Sidorov
c93a16eca3
Linear, Conical and Radial gradients
2011-08-08 09:24:28 +10:00
sidorares
2b907bdc5f
working RenderTriangle test
2011-08-05 13:20:30 +10:00
sidorares
501cc67fce
store function instead of request name (extensions!!!)
2011-08-02 15:22:09 +10:00
sidorares
d2a56871d2
bug in port calculation
2011-08-01 16:42:30 +10:00
sidorares
24761ec261
pass displayNum to the XClient contructor
2011-08-01 16:35:35 +10:00
sidorares
0a81b9fdf8
.Xauth-based authorisation
2011-08-01 16:13:44 +10:00
sidorares
6cf8937e2a
pixmap pupport in Window class
2011-07-26 15:51:30 +10:00
sidorares
1cfab85500
pass correctly mouse button (and keyboard) code in unpackEvent
2011-07-26 11:22:00 +10:00
sidorares
8cf496a220
connet handler as a parameter to createClient
2011-07-25 13:50:46 +10:00
sidorares
71f6317e92
wrapper for Window.title property -> ChangeProperty/WM_NAME
2011-07-22 16:14:29 +10:00
sidorares
a1d1bb6e42
GetProperty request
2011-07-21 16:07:34 +10:00
sidorares
adb7de62bf
ChangePropery request
2011-07-21 15:28:14 +10:00
sidorares
783ac4b416
client.atoms - std atoms (hardcoded) + atoms cache
2011-07-21 14:09:44 +10:00
sidorares
c792439cc8
dispatch error to request callback if callback set
2011-07-20 12:23:46 +10:00
sidorares
a911771bfc
GraphicsContext wrapper
2011-07-19 11:04:16 +10:00
sidorares
bd7897d6b5
fixed unpacking Expose event
2011-07-19 10:51:05 +10:00
Andrey Sidorov
359c8205ef
XClient.terminate
2011-07-19 09:31:47 +10:00
sidorares
85fe833e9f
initial error reply unpacking, client emits 'error' event
2011-07-18 17:41:58 +10:00
sidorares
ebb8dfaabf
event mask symbolic names; PolyFillRectangle request
2011-07-18 17:16:54 +10:00
sidorares
4c1a2b8209
InternAtom request benchmarks
2011-07-18 14:41:30 +10:00
sidorares
4164611a06
InternAtom/GetAtomName requests
2011-07-18 13:16:20 +10:00