mirror of
https://github.com/danbulant/node-x11
synced 2026-05-27 05:52:02 +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)
|
XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
||||||
{
|
{
|
||||||
var event = {}; // TODO: constructor & base functions
|
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;
|
event.seq = seq;
|
||||||
|
|
||||||
var extUnpacker = this.eventParsers[type];
|
var extUnpacker = this.eventParsers[type];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue