Commit graph

294 commits

Author SHA1 Message Date
Aliaksei Chapyzhenka
08a6ae573e added dummy function "stash" to help browserify bundler with require prefetch 2017-04-20 22:20:35 -07:00
Andrey Sidorov
77a94b1324 Merge pull request #136 from 15lyfromsaturn/master
double import of templates
2016-11-24 13:57:23 +11:00
Svetlana Linuxenko
9b6492b34a
double import of templates 2016-11-23 20:03:56 +02:00
Andrey Sidorov
562ed74562 Merge pull request #135 from 15lyfromsaturn/master
GCFunction shortcuts
2016-11-19 10:48:47 +11:00
Svetlana Linuxenko
9e967b9734
GCFunction shortcuts 2016-11-18 15:05:28 +02:00
Svetlana Linuxenko
6293ab358b duplicated entry 2016-11-18 12:37:24 +01:00
Santiago Gimeno
e09c8b5429
randr: add GetOutputInfo request 2016-10-11 10:19:30 +02:00
Santiago Gimeno
4f241ba2b3 Cache X11 extensions 2016-10-06 12:11:59 +02:00
Ian Scott
b9bebe3a11 Unpack handshake error 2016-05-18 18:14:03 -07:00
Andrey Sidorov
60f8b08037 add unused IDs buffer 2016-05-18 20:22:24 +10:00
Ian Scott
bbaf2a8654 Refactor to keep number of parsed depths in a counter 2016-05-17 14:42:42 -07:00
Ian Scott
7ed7e896e1 Handle cases where depths appear multiple times 2016-05-17 14:41:53 -07: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
Ian Scott
86f977f9bd Handle nonexistent Xauthority file 2016-01-28 16:35:04 -08:00
Ian Scott
582bd1a1b2 Use os-homedir for older node.js versions 2016-01-28 14:51:16 -08:00
Ian Scott
e90c1fd239 Find cookie with same logic as libXau 2016-01-28 14:50:24 -08: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
Andrey Sidorov
9a7adcefb1 fix Render.Triangles index bug 2016-01-02 13:31:34 +11:00
Andrey Sidorov
97dba66197 fix incorrect format in SetPictureTransform 2015-12-11 15:15:10 +11:00
Andrey Sidorov
b39672b9d3 Merge pull request #113 from aurium/master
Enhance keySyms
2015-11-09 19:56:33 -08:00
Andrey Sidorov
84ecd7afe3 Merge pull request #115 from sidorares/render-improvements
Render improvements
2015-11-09 19:52:07 -08:00
Andrey Sidorov
b635b3209d increment seq_num before assigning callback so response mapping is correct 2015-11-08 23:59:10 +11:00
Andrey Sidorov
4a3f3f6075 fix formatting; fix binomial filter params check; set format beforehand for SetPictureTransform 2015-11-08 16:53:24 +11:00
Andrey Sidorov
a49c9adeb3 don't increment seq_num if exception is thrown 2015-11-08 12:13:53 +11:00
Andrey Sidorov
fa9dbe2000 add Render.AddTraps request 2015-11-04 16:44:25 +11:00
Aurélio A. Heckert
6ad3f94b93 Lazily load keySyms 2015-11-02 15:31:38 -03:00
Aurélio A. Heckert
de2b73ca2b Enhance keySyms
* Direct translate from X.Org's xproto/keysymdef.h
* Adds the key description as JSON data
* Update examples where the `x11.keySyms` API changes
2015-10-31 17:37:58 -03:00
Andrey Sidorov
5c72df00e5 added PolyEdge,PolyMode,Repeat,Subpixel and Filters constants 2015-10-26 10:18:13 +11:00
Andrey Sidorov
c5fb01edaa added PictOp constant codes 2015-10-26 10:09:01 +11:00
Andrey Sidorov
63fbe2e671 add SetPictureTransform 2015-10-26 09:54:37 +11:00
Aurélio A. Heckert
68e261dabe Adds missed AltGr keycode
`XK_ISO_Level3_Shift` is the code name for `AltGr`.

`NoSymbol` will help us to know when a keycode is meaningless or if it is unknown.

Also, i believe http://cgit.freedesktop.org/xorg/proto/xproto/tree/keysymdef.h is a better source to find keycodes. :-)
2015-10-24 18:07:29 -03:00
Andrey Sidorov
31785d9a5b fix Render.SetPictureFilter 2015-10-23 10:41:30 +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
Michael J M Thomson
520be559e8 Add function Rectangles. Fix function Mask 2015-05-29 11:17:34 +10:00
Ian Scott
dc90e2760d Add FreePicture to XRender 2015-04-20 10:46:24 -07:00
dizzib
45ab095ef2 add ClearArea 2015-03-04 13:26:20 +00:00
Santiago Gimeno
b3ca6fb04b src: add AllowEvents core request 2015-01-20 13:57:08 +01:00
Ian Scott
3e3f1805a2 Remove debug messages from MappingNotify 2015-01-14 10:08:59 -08:00
Santiago Gimeno
76ce6c4141 src: ignore invalid mask values
- Avoiding a TypeError exception @ packValueMask.
- Added a test.
2015-01-08 13:33:06 +01:00
Andrey Sidorov
5e76aafd30 Merge pull request #75 from timroes/master
Add LowerWindow method
2015-01-04 08:35:24 +11:00
Tim Roes
ff73173cd5 feat: fix format of LeaveNotify event 2015-01-03 21:33:06 +01:00