mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 13:29:13 +00:00
Reads nessage_type from ClientMessage.
See: https://tronche.com/gui/x/xlib/events/client-communication/client-message.html
This commit is contained in:
parent
f21cdb187b
commit
27c70c7315
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue