mirror of
https://github.com/danbulant/node-x11
synced 2026-05-27 14:01:52 +00:00
Merge pull request #29 from santigimeno/fix_parsing_event_type_field
Really fix the parsing of the event type field
This commit is contained in:
commit
f927634d60
1 changed files with 2 additions and 1 deletions
|
|
@ -237,7 +237,8 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
||||||
var event = {}; // TODO: constructor & base functions
|
var event = {}; // TODO: constructor & base functions
|
||||||
// Remove the most significant bit. See Chapter 1, Event Format section in X11 protocol
|
// Remove the most significant bit. See Chapter 1, Event Format section in X11 protocol
|
||||||
// specification
|
// specification
|
||||||
event.type = type && 0x7F;
|
type = type & 0x7F;
|
||||||
|
event.type = type;
|
||||||
event.seq = seq;
|
event.seq = seq;
|
||||||
|
|
||||||
var extUnpacker = this.eventParsers[type];
|
var extUnpacker = this.eventParsers[type];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue