Handle UnmapNotify event

This commit is contained in:
Santiago Gimeno 2013-11-05 10:21:42 +01:00
parent 3746e369fa
commit 85773377e9

View file

@ -300,6 +300,12 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw)
event.name = 'DestroyNotify'
event.wid = extra;
event.wid1 = values[0];
} else if (type == 18) { // UnmapNotify
var values = raw.unpack('LLC');
event.name = 'UnmapNotify'
event.event = extra;
event.wid = values[0];
event.fromConfigure = values[1] ? true : false;
} else if (type == 19) { // MapNotify
var values = raw.unpack('LLC');
event.name = 'MapNotify'