diff --git a/lib/xcore.js b/lib/xcore.js index 1b25aa5..ee0a0cc 100644 --- a/lib/xcore.js +++ b/lib/xcore.js @@ -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'