mirror of
https://github.com/danbulant/node-x11
synced 2026-06-14 04:01:10 +00:00
ConfigureNotify event parser
This commit is contained in:
parent
9de1221c94
commit
3e9b5f7faa
1 changed files with 12 additions and 1 deletions
|
|
@ -254,7 +254,18 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
|||
} else if (type == 20) {
|
||||
var values = raw.unpack('LL');
|
||||
event.parent = extra;
|
||||
event.wid = values[0]
|
||||
event.wid = values[0];
|
||||
} else if (type == 22) {
|
||||
var values = raw.unpack('LLssSSSC');
|
||||
event.wid = extra;
|
||||
event.wid1 = values[0];
|
||||
event.aboveSibling = values[1];
|
||||
event.x = values[2];
|
||||
event.y = values[3];
|
||||
event.width = values[4];
|
||||
event.height = values[5];
|
||||
event.borderWidth = values[6];
|
||||
event.overrideRedirect = values[7];
|
||||
} else if (type == 23) {
|
||||
var values = raw.unpack('LLLssSSS');
|
||||
event.parent = extra;
|
||||
|
|
|
|||
Loading…
Reference in a new issue