mirror of
https://github.com/danbulant/node-x11
synced 2026-05-19 04:18:35 +00:00
Fix parsing of CreateNotify event
This commit is contained in:
parent
550b2a9329
commit
4376fcac49
1 changed files with 4 additions and 3 deletions
|
|
@ -299,13 +299,14 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
|||
} else if (type == 16) { // CreateNotify
|
||||
var values = raw.unpack('LLssSSSc');
|
||||
event.name = 'CreateNotify'
|
||||
event.parent = extra;
|
||||
event.wid = values[0];
|
||||
event.parent = values[0];
|
||||
event.wid = values[1];
|
||||
event.x = values[2];
|
||||
event.y = values[3];
|
||||
event.width = values[4];
|
||||
event.height = values[5];
|
||||
event.overrideRedirect = values[6] ? true : false;
|
||||
event.borderWidth = values[6];
|
||||
event.overrideRedirect = values[7] ? true : false;
|
||||
// x, y, width, height, border
|
||||
} else if (type == 17) { // destroy notify
|
||||
var values = raw.unpack('LL');
|
||||
|
|
|
|||
Loading…
Reference in a new issue