Really fix the parsing of the event type field

- Typo: use the bitwise operator and not the comparison operator
This commit is contained in:
Santiago Gimeno 2013-05-22 14:58:32 +02:00
parent 877d263a93
commit 9ee3721dd2

View file

@ -237,7 +237,8 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
var event = {}; // TODO: constructor & base functions
// Remove the most significant bit. See Chapter 1, Event Format section in X11 protocol
// specification
event.type = type && 0x7F;
type = type & 0x7F;
event.type = type;
event.seq = seq;
var extUnpacker = this.eventParsers[type];