Commit graph

307 commits

Author SHA1 Message Date
Andrey Sidorov
3f1b8e5442 GenTextures, TexCoord2D, BindTexture, TextureParameterf, TexEnvf 2013-02-20 12:00:10 +11:00
Andrey Sidorov
3f064b218e get rid of lib/x11 nested subdirectory, lib/x11 -> lib 2013-02-19 16:23:53 +11:00
Andrey Sidorov
bc84ca9c59 remove debug output 2012-12-20 01:16:43 +11:00
Andrey Sidorov
aa7ab0b7d5 cleanup 2012-12-20 01:16:19 +11:00
Andrey Sidorov
8e833145ab Automatically send Render buffer if too large or before any GLX call 2012-12-20 00:55:31 +11:00
Andrey Sidorov
a951aa26cb QueryPointer result unpacking 2012-12-20 00:54:19 +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
34efb7ad30 merge conflict 2012-12-13 00:59:46 +11:00
Andrey Sidorov
224a360c13 referted incorrect merge 2012-12-12 23:32:16 +11:00
Andrey Sidorov
4a6ce3f2d3 merge conflicts 2012-12-12 22:40:54 +11:00
Andrey Sidorov
3e9b5f7faa ConfigureNotify event parser 2012-12-12 22:33:08 +11:00
Andrey Sidorov
82fd6207f7 auto-generated constants from gl.h 2012-12-12 22:26:19 +11:00
Andrey Sidorov
2777e6dd01 import constants; Light,Material,Normal,BlendFunc 2012-12-12 22:25:52 +11:00
Andrey Sidorov
2aa2001067 glFinish 2012-12-12 22:24:33 +11:00
Andrey Sidorov
a5087c35c6 glHint 2012-12-11 16:05:18 +11:00
Andrey Sidorov
10fef2fe9a glx extension and glxRender-encoded commands 2012-12-10 00:01:24 +11:00
Andrey Sidorov
f1eacd8864 xserver accepts requests now (handshake data still from pre-saved file) 2012-11-27 11:28:28 +11:00
Andrey Sidorov
c473c9cad7 initial implementation for fixes extension 2012-11-27 10:42:35 +11:00
Andrey Sidorov
dfb9ff059a Merge branch 'master' of https://github.com/sidorares/node-x11 2012-11-27 10:41:04 +11:00
Andrey Sidorov
11c6f05e9f fix in calculation rgba32 visual 2012-11-27 10:40:59 +11:00
Santiago Gimeno
f8a3c71252 Some more fixes in extensions
- Return always if the extension is not available
2012-11-26 18:15:05 +01:00
Santiago Gimeno
9b8cef815b A couple of fixes in xtest extension
- Return directly in case of error retrieving the extension.
- QueryVersion should be GetVersion and fix its format.
- Add a test for GetVersion.
- Modify test-runner.js so it uses async library to add dynamically the test
  files to be used.
2012-11-26 16:51:56 +01:00
Santiago Gimeno
c0dccec8bc Add DPMS extension
- Implemented all requests defined in:
  http://www.x.org/releases/X11R7.6/doc/xextproto/dpms.pdf
- Tests added.
2012-11-23 14:44:25 +01:00
Santiago Gimeno
6822d759f0 Add RaiseWindow request 2012-08-06 10:40:44 +02:00
Andrey Sidorov
7312baef09 Merge pull request #11 from santigimeno/master
A couple of fixes in unpackEvent
2012-08-04 15:53:39 -07:00
Santiago Gimeno
a98de8d47c Add revertTo param 2012-08-05 00:01:22 +02:00
Santiago Gimeno
5d4caccca8 A couple of fixes in unpackEvent 2012-08-04 22:27:03 +02:00
Santiago Gimeno
fd939c985d Add SetInputFocus 2012-08-03 15:21:29 +02:00
Santiago Gimeno
2df9069ef1 Declare some more undeclared variables
So they don't pollute the global object.
2012-07-24 09:57:48 +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
Santiago Gimeno
d5ad3c4134 Declare cookieNum with var so it is not global 2012-07-12 17:27:58 +02:00
Santiago Gimeno
75e3a3ddd3 Add MoveResizeWindow request 2012-07-11 13:38:03 +02:00
Andrey Sidorov
d2707f8d38 PolyFillArc request 2012-06-15 11:00:13 +10:00
Andrey Sidorov
e24ad5dc9f fix for DeletePropery request 2012-06-13 15:16:09 +10:00
Andrey Sidorov
313aa8a1cc global variable pollution fix 2012-06-13 13:12:50 +10:00
Andrey Sidorov
cfbf71c6b8 ConvertSelection request 2012-06-11 23:59:40 +10:00
Andrey Sidorov
de99f7ec14 SelectionRequest and SelectionNotify events 2012-06-11 23:59:09 +10:00
Andrey Sidorov
5315432ce4 AppleWM events 2012-06-11 23:57:51 +10:00
Andrey Sidorov
f5303b0ad9 PropertyNotify and SelectionClear unpackers 2012-06-11 17:05:23 +10:00
Andrey Sidorov
06d87c5908 Get/SetSelectionOwner requests 2012-06-09 14:15:19 +10:00
Andrey Sidorov
771330201b signed x,y in CreateWindow, value instead of array in ListProps 2012-06-09 13:52:14 +10:00
Andrey Sidorov
93c09e553e ListProperties request 2012-06-08 23:13:01 +10:00
Andrey Sidorov
5b6fd461ac return if no extension present 2012-06-08 19:27:27 +10:00
Andrey Sidorov
5dec4c29b7 SetScreenSaver request 2012-06-08 15:00:13 +10:00
Andrey Sidorov
0b68bbbdb0 initial support to add event parsers from extension 2012-06-08 14:59:35 +10:00
Andrey Sidorov
58e526d913 SCREEN-SAVER extension 2012-06-08 14:57:24 +10:00
Andrey Sidorov
5d6bdee7de DamageNotify event decoder 2012-06-07 23:09:27 +10:00
Andrey Sidorov
d7765b01bf FrameGetRect, FrameHitTest requests 2012-06-07 12:17:24 +10:00
Andrey Sidorov
41ceeb67d8 AppleWM extension 2012-06-05 12:56:02 +10:00
Andrey Sidorov
3eaaadd0da global variable leak test 2012-06-01 18:17:26 +10:00
Andrey Sidorov
ca5efc1941 KillKlient and ForceScreenSaver requests 2012-06-01 11:57:20 +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
f40eb4e3d2 XC-MISC extension 2012-05-31 11:06:46 +10:00
Andrey Sidorov
b0931f1feb SHAPE extension 2012-05-31 11:05:51 +10:00
Andrey Sidorov
1a82cc2141 fix for GetOverlayWindow callback 2012-05-29 16:32:43 +10:00
Andrey Sidorov
fba32b442a correct size for all requests 2012-05-29 15:56:41 +10:00
Andrey Sidorov
31194398bc DAMAGE and Composite extensions 2012-05-29 09:56:40 +10:00
Andrey Sidorov
3298795a7b use padded 4 bytes for all CreatePicture parameters 2012-05-01 13:11:40 +10:00
Andrey Sidorov
93cec8ecc7 load BigReq extansion by default 2012-05-01 13:08:19 +10:00
Andrey Sidorov
0c2cdeb884 ChangeGC and ListFonts requests 2012-04-18 15:07:03 +10:00
Andrey Sidorov
f2c3090e9a extra depth argunebt in CreateWindow 2012-04-11 16:53:27 +10:00
Andrey Sidorov
4a1964febb all callbacks now have error as first argument 2012-04-11 16:50:14 +10:00
Andrey Sidorov
e53a974668 constants added 2012-04-11 16:49:37 +10:00
Andrey Sidorov
15bbd67965 end event in client 2012-04-11 16:49:24 +10:00
Andrey Sidorov
bc641f3bce shift pixel 8bits left in AllocColor result 2012-04-11 16:43:58 +10:00
Andrey Sidorov
c5c5d973b5 make borderWidth, class, visual and depth arguments optional defaults to 0 2012-04-11 11:29:45 +10:00
Andrey Sidorov
c26bc6b47d initial X bridge library code 2012-04-05 12:36:38 +10:00
Andrey Sidorov
79596460c8 pixel_with -> pixel_width typo 2012-02-28 17:34:11 +11:00
Andrey Sidorov
a6cb1c2629 more event decoders 2012-02-28 17:32:28 +11:00
Andrey Sidorov
270c30f9e5 CreateColormap, ResizeWindow, MoveWindow, GetImage, GetWindowAttributes requests 2012-02-28 17:31:41 +11:00
Andrey Sidorov
b7a6c8b190 ChangeWindowAttributes, ChangeSaveSet, ReparentWindow requests 2012-02-03 20:45:20 +11:00
Andrey Sidorov
b35752cd28 fix in connection code 2012-01-20 14:37:08 +11:00
Andrey Sidorov
1123cfd466 initial ConfigureWindow implementation 2012-01-18 16:49:29 +11:00
Andrey Sidorov
3732cc4e20 keyboard event 2012-01-18 16:48:54 +11:00
Andrey Sidorov
20c969d9f7 python-xlib link 2011-12-31 09:02:35 +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
564f4f0126 capture stack trace for Render functions) 2011-12-15 09:31:29 +11:00
Andrey Sidorov
d24332c90f fix for incorrect length of authType & authData strings in handshake 2011-11-25 23:25:02 +01:00
Andrew Swerlick
986c3f07e2 Added GetGeometry request 2011-09-13 23:05:39 -04:00
Andrey Sidorov
44b409bccd keycodes list reading at incorrect offset 2011-09-14 09:28:07 +10:00
Andrey Sidorov
dfa3a14820 some debug dump removed 2011-09-11 23:11:28 +10:00
Andrey Sidorov
0073aec478 some debug dump removed 2011-09-11 23:03:53 +10:00
Andrey Sidorov
9e0b53c793 associate stack trace for function call with sequence number 2011-09-11 23:02:53 +10:00
sidorares
d6bc4d5c32 BigReq should work now 2011-09-09 11:30:18 +10:00
sidorares
9b439d3d80 save reference to client before emitting connect event 2011-09-09 11:27:17 +10:00
Andrey Sidorov
53c5df562b initial big-reqests support 2011-09-09 10:04:19 +10:00
sidorares
7158b5c59f XTEST FakeInput request 2011-09-08 12:38:46 +10:00
sidorares
5e999c3446 WarpPointer request 2011-09-07 13:06:09 +10:00
Andrey Sidorov
a40ba7d874 initial SendEvent implementation 2011-09-07 09:50:19 +10:00
sidorares
1696c4b28a links to protocol docs 2011-09-05 10:33:53 +10:00
sidorares
0a09793726 require(extension) 2011-09-02 11:52:29 +10:00
Andrey Sidorov
1bbc9dbe88 ininial extantions framework, rendar extension, render example 2011-09-02 10:16:30 +10:00
sidorares
7ccc7f45ea XRENDER example added 2011-09-01 10:53:26 +10:00
sidorares
6e7551663d more codes link comment 2011-08-30 15:18:18 +10:00
sidorares
c1ee1fea65 GetKeyboardMapping fix + test 2011-08-30 15:16:07 +10:00
sidorares
42e3e4c9a6 keysyms constants file 2011-08-30 12:28:57 +10:00
sidorares
1a7929ee9f more render examples 2011-08-08 13:50:39 +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
b46876bdc3 more XRender requests 2011-08-03 17:28:09 +10:00
sidorares
501cc67fce store function instead of request name (extensions!!!) 2011-08-02 15:22:09 +10:00
sidorares
bf2c603be7 try to connect with empty auth data if no Xauthority file 2011-08-02 14:12:30 +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
e23f1caa68 CreatePixmap and CopyArea requests 2011-07-26 13:44:44 +10:00
sidorares
1cfab85500 pass correctly mouse button (and keyboard) code in unpackEvent 2011-07-26 11:22:00 +10:00
sidorares
30f2f74d59 AllocColor request 2011-07-25 19:50:51 +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
Andrey Sidorov
4ac7010e45 TODO comment: values-set list values are actually of variable size, need to refactor 2011-07-22 09:41:14 +10:00
Andrey Sidorov
d694000bd0 bitGravity typo 2011-07-22 09:31:17 +10:00
sidorares
1b5eb9145f fix for PolyPoint/PolyLine requests (incorrect length) 2011-07-21 17:19:06 +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
318b1afd1f PutImage example: load and display logo from bmp file 2011-07-20 16:58:33 +10:00
sidorares
aa5c4bac1c allow Buffer to be used as 'a' format pack parameter 2011-07-20 14:45:46 +10:00
sidorares
ebb123cf8e QueryPointer + test + benchmark 2011-07-20 13:05:40 +10:00
sidorares
9f98268cf5 keep templates in order of opcode 2011-07-20 12:34:05 +10:00
sidorares
c9e6ccd264 keep templates in order of opcode 2011-07-20 12:33:19 +10:00
sidorares
c792439cc8 dispatch error to request callback if callback set 2011-07-20 12:23:46 +10:00
sidorares
0ca8b090be QueryExtension request 2011-07-19 17:00:59 +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
Andrey Sidorov
7de07994a5 PolyLine, QueryExtensions requests 2011-07-19 09:25:27 +10:00
Andrey Sidorov
ea8bc9ed5b PolyPoint request + test 2011-07-19 08:25:41 +10:00
sidorares
8347e51fbf PolyText8 request + example 'Hello, Node.JS!' 2011-07-18 19:56:11 +10:00
sidorares
cceceffa90 missed format arg vor values mask in CreateGC 2011-07-18 18:28:13 +10:00
sidorares
80923803e0 ben packet length for CreateGC 2011-07-18 17:57:47 +10:00
sidorares
fff3c86688 missing drawable arg in format string for PolyFillRectangle request 2011-07-18 17:43:22 +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
e5cfbac8b7 event mask name to value map 2011-07-18 16:34:21 +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
sidorares
21d6f27ff2 broken merge, forgot to resolve conflict 2011-07-18 10:59:53 +10:00
sidorares
bf81e3170e Merge branch 'master' of https://github.com/sidorares/node-x11
Conflicts:
	lib/x11/corereqs.js
2011-07-18 10:54:28 +10:00
sidorares
c6da7dd7b7 better platform detection 2011-07-18 10:50:26 +10:00
sidorares
265e2b0bed new V* stricter to variable names - class renamed to _class 2011-07-18 10:49:37 +10:00
Andrey Sidorov
3d3658d0b8 Atoms requests, handling replies (work in progress) 2011-07-18 10:18:52 +10:00
Andrey Sidorov
3f4c8b5700 MotionNotify unpack code 2011-07-15 18:42:28 +10:00
Andrey Sidorov
05075779d5 CARD16 pack error 2011-07-14 18:45:53 +10:00
sidorares
e62bc74750 CreateGC request 2011-07-14 18:08:25 +10:00
sidorares
8e5758238f UnmapWindow request 2011-07-14 16:39:59 +10:00
sidorares
14592502c0 initial big import. Working base to add new requests 2011-07-14 15:35:49 +10:00
sidorares
f128d32c72 initial library setup 2011-06-07 14:37:49 +10:00