mirror of
https://github.com/danbulant/node-x11
synced 2026-05-19 04:18:35 +00:00
Merge pull request #27 from santigimeno/fix_event_type_parsing
Fix the parsing of the type field in Event msgs
This commit is contained in:
commit
97eade2c49
1 changed files with 3 additions and 1 deletions
|
|
@ -235,7 +235,9 @@ XClient.prototype.AllocID = function()
|
|||
XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
||||
{
|
||||
var event = {}; // TODO: constructor & base functions
|
||||
event.type = type;
|
||||
// Remove the most significant bit. See Chapter 1, Event Format section in X11 protocol
|
||||
// specification
|
||||
event.type = type && 0x7F;
|
||||
event.seq = seq;
|
||||
|
||||
var extUnpacker = this.eventParsers[type];
|
||||
|
|
|
|||
Loading…
Reference in a new issue