From 27c70c73155a6bf44e5b02ca6d3978347b56cdde Mon Sep 17 00:00:00 2001 From: plehmkuhl Date: Tue, 2 Feb 2016 16:26:41 +0100 Subject: [PATCH] Reads nessage_type from ClientMessage. See: https://tronche.com/gui/x/xlib/events/client-communication/client-message.html --- lib/xcore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/xcore.js b/lib/xcore.js index 350b270..3d32752 100644 --- a/lib/xcore.js +++ b/lib/xcore.js @@ -404,6 +404,7 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw, headerBuf) event.name = 'ClientMessage'; event.format = code; event.wid = extra; + event.message_type = raw.unpack('L'); var format = (code === 32) ? 'LLLLL' : (code === 16) ? 'SSSSSSSSSS' : 'CCCCCCCCCCCCCCCCCCCC'; event.data = raw.unpack(format, 4); } else if (type == 34) {