mirror of
https://github.com/danbulant/node-x11
synced 2026-06-15 12:41:29 +00:00
Update DestroyNotify and MapNotify handling
- To be better aligned with the spec.
This commit is contained in:
parent
85773377e9
commit
90148d64a8
1 changed files with 5 additions and 4 deletions
|
|
@ -298,8 +298,8 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
|||
} else if (type == 17) { // destroy notify
|
||||
var values = raw.unpack('LL');
|
||||
event.name = 'DestroyNotify'
|
||||
event.wid = extra;
|
||||
event.wid1 = values[0];
|
||||
event.event = extra;
|
||||
event.wid = values[0];
|
||||
} else if (type == 18) { // UnmapNotify
|
||||
var values = raw.unpack('LLC');
|
||||
event.name = 'UnmapNotify'
|
||||
|
|
@ -309,8 +309,9 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
|
|||
} else if (type == 19) { // MapNotify
|
||||
var values = raw.unpack('LLC');
|
||||
event.name = 'MapNotify'
|
||||
event.wid = extra;
|
||||
event.wid1 = values[0];
|
||||
event.event = extra;
|
||||
event.wid = values[0];
|
||||
event.overrideRedirect = values[1] ? true : false;
|
||||
} else if (type == 20) {
|
||||
var values = raw.unpack('LL');
|
||||
event.name = 'MapRequest'
|
||||
|
|
|
|||
Loading…
Reference in a new issue