From 85773377e9e95146d926afee3d1c602063a6560e Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Tue, 5 Nov 2013 10:21:42 +0100 Subject: [PATCH] Handle UnmapNotify event --- lib/xcore.js | 6 ++++++ 1 file changed, 6 insertions(+) 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'