Commit graph

307 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
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
Tim Roes
2f66f04d9f feat: add LowerWindow method 2015-01-03 20:41:33 +01:00
Santiago Gimeno
5712dfd4c9 src: maskList.sort @ packValueMask must be numeric 2014-12-09 16:15:03 +01:00
Santiago Gimeno
28e9343487 src: fix CreateGC attributes encoding
- Every attribute must have 4 byte length.
- Add test.
2014-12-09 10:33:19 +01: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
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
Andrey Sidorov
cb3cfa91eb fix in rates calculations in GetScreenInfo 2014-10-04 20:46:29 +10:00
champii
6d6c8d3b9f Extensions, tests and exemples are now cps-style 2014-09-23 16:09:18 +02:00
champii
4feba92047 fixed PR 2014-09-23 15:41:37 +02:00
champii
0c95b39c28 Norme 2014-09-23 15:32:49 +02:00
champii
b69f67222b added FreeCursor call 2014-09-23 15:32:49 +02:00
champii
d46d43a22e Trying to fix tests 2014-09-23 15:32:48 +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
3b6f692d54 Trying to fix PutImage BadLength 2014-09-23 15:32:48 +02:00
champii
793b551b7a fixed putImage 2014-09-23 15:32:48 +02:00
champii
21002831a0 trying to use PutImage 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
champii
e5e4eac0e5 Added CreateCursor Method 2014-09-23 15:32:48 +02:00
Andrey Sidorov
bcee037683 Merge pull request #61 from sidorares/render-glyphs
WIP: Render extension text related functions
2014-09-08 12:27:40 +10:00
Santiago Gimeno
db42c54427 Really fix KillClient / KillKlient 2014-07-28 19:01:12 +02:00
Santiago Gimeno
18404d0de1 Fix name of KillClient request
- s/KillKlient/KillClient
- Keep KillClient for backwards compatibility.
2014-07-07 13:13:43 +02:00
Andrey Sidorov
421261aaac add MappingNotify event 2014-05-02 14:37:37 +10:00
Andrey Sidorov
cefaaf942f fix in changefont glyphele serialization 2014-04-04 14:23:51 +11:00
Andrey Sidorov
cd29ef9dde support 16 and 32 bit strings 2014-04-03 01:25:40 +11:00
Andrey Sidorov
88266bd3cb link to big list of request codes 2014-04-03 01:24:45 +11:00
Andrey Sidorov
b9264546a9 tabs 2014-04-01 23:42:04 +11:00
Andrey Sidorov
01c607cd3e cleanups 2014-03-31 14:06:11 +11:00
Andrey Sidorov
33005e8f76 fix: signed 13 and 32 bit ints (l and s formats) 2014-03-31 14:05:51 +11:00
Andrey Sidorov
8cfac532ec ComositeGlyph fixes 2014-03-31 10:52:57 +11:00
Andrey Sidorov
5b4bcbbe92 add CreateSolidFill request 2014-03-29 23:52:51 +11:00
Andrey Sidorov
f0d25c325e add FreePixmap request 2014-03-29 18:46:12 +11:00
Andrey Sidorov
39afe27793 add XRender error handling 2014-03-28 17:44:27 +11:00
Andrey Sidorov
54bd06c136 fix: add length to AddGlyph 2014-03-26 11:20:34 +11:00
Andrey Sidorov
79cf131815 fix: incorrect FreeGlyphSet format 2014-03-26 09:17:38 +11:00
Andrey Sidorov
ff0a950994 CreateGlyphSet / AddGlyphs 2014-03-26 00:30:58 +11:00
Andrey Sidorov
dc1050afb4 link to a very good glx implementation 2014-03-25 22:14:26 +11:00
Andrey Sidorov
942f48a5e9 cleanup tabs 2014-03-25 21:31:16 +11:00
Santiago Gimeno
a8a8a9f0f2 Fix typo in crtcs field 2014-03-21 16:09:24 +01:00
Santiago Gimeno
0288e45f08 Add XFixes CreateRegionFromWindow request
- And add WINDOW_REGION_KIND type.
2014-03-21 16:07:51 +01:00
Santiago Gimeno
4376fcac49 Fix parsing of CreateNotify event 2014-03-21 12:29:22 +01:00
Andrey Sidorov
140d92c339 Merge pull request #58 from santigimeno/xfixes_requests
Add some REGION-related XFIXES requests
2014-03-20 10:38:21 +11:00
Santiago Gimeno
5d49ed338c Add some REGION-related XFIXES requests
- CreateRegion, DestroyRegion, UnionRegion, TranslateRegion and FetchRegion
2014-03-19 17:01:27 +01:00
Santiago Gimeno
3e98160fea Add GetCrtcInfo and fix in GetScreenResources 2014-03-13 13:24:37 +01:00
Santiago Gimeno
88ac8179c6 Add GetScreenResources request and MODEFLAG type
- Don't include the length fields in GetScreenResources and SetScreenConfig
  replies as the're redundant.
2014-03-11 10:25:21 +01:00
Santiago Gimeno
76f969e311 Add RANDR SetScreenConfig GetScreenInfo requests
- Also added ROTATION and CONFIGSTATUS types.
2014-03-10 15:42:44 +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
6f455fffd9 added BindTexImage / ReleaseTexImage 2014-03-06 22:52:15 +11:00
Andrey Sidorov
10b68eecad add VendorPrivate and CreatePixmap 2014-03-06 10:51:19 +11:00
Andrey Sidorov
13d3f680b9 add ProgramString and BindProgram 2014-03-06 10:50:35 +11:00
Andrey Sidorov
a9c2254aed use RenderLarge for TexImage2D 2014-03-03 11:56:33 +11:00
Andrey Sidorov
bd119318e0 RenderLarge request 2014-03-03 11:56:01 +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
Andrey Sidorov
a5e75b4e7d remove debug 2014-03-03 11:54:49 +11:00
Andrey Sidorov
1545b39196 add TexImage2D and TexParameter functions 2014-02-18 10:34:00 +11:00
Andrey Sidorov
e354b8332b fix offset in GenTextures result 2014-02-14 16:40:20 +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
ea5976e42d Add GrabServer and UngrabServer requests 2013-11-25 14:53:19 +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
Andrey Sidorov
521cdeb105 fix RRScreenChangeNotify event parser 2013-11-01 13:51:50 +11:00
Andrey Sidorov
c6dcb2b67d initiall support for RANDR extension 2013-11-01 13:05:14 +11:00
Dominic Tarr
7fc33f3bab add EnterWindow event, and give events names 2013-10-30 11:12:15 -07:00
Santiago Gimeno
951564b0d1 Fix GetAtomName
- We were not catching the atoms.
- We were leaking the Client.pending_atoms object.
- Fix test so it does what it was supposed to do.
2013-10-28 16:55:08 +01:00
Santiago Gimeno
533f490806 Add Grab requests
- GrabPointer, UngrabPointer, GrabButton, UngrabButton, ChangeActivePointerGrab,
  GrabKeyboard, UngrabKeyboard, GrabKey and UngrabKey
2013-10-21 11:27:26 +02:00
Santiago Gimeno
3b415bcec5 Add GetInputFocus request 2013-07-17 08:12:10 +02:00
Santiago Gimeno
3caf470c97 Fixes in some replies
- Some optional data was not being returned.
2013-07-16 15:38:18 +02:00
Minko Gechev
9b0457817a Byte order specified 2013-06-02 01:23:33 +03:00
Minko Gechev
4407b398a4 Collecting the cookies information in a loop 2013-06-01 15:59:19 +03:00
Santiago Gimeno
c2645fd09e Declare variable in TranslateCoordinates callback 2013-05-27 12:59:39 +02: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
e361424792 Fix format of some requests 2013-05-21 14:38:35 +02:00
Santiago Gimeno
e69f1b7475 Add support for signed data
- Use Buffer write functions
2013-05-21 14:38:21 +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
24a5816991 Add TranslateCoordinates core request 2013-03-27 11:57:04 +01:00
Santiago Gimeno
759da10e8f A couple of fixes in GetGeometry
- Make ext variable local.
- Fix typo in borderWidth attribute.
2013-03-12 12:08:53 +01: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
d16d1a7247 Merge branch 'master' of github.com:sidorares/node-x11 2013-02-26 11:26:01 +11:00
Andrey Sidorov
07cbcea4d7 hash instead of array in GetWindowAttributes result 2013-02-26 11:25:53 +11:00
Santiago Gimeno
243651b4d8 Add ConfigureWindow core request
- Update requests based on ConfigureWindow to use the new implementation.
- Add sibling field in valueMask.ConfigureWindow.
- Add new tests.
2013-02-22 10:32:49 +01:00