mirror of
https://github.com/danbulant/node-x11
synced 2026-05-24 12:35:39 +00:00
feat: fix format of LeaveNotify event
This commit is contained in:
parent
7351c47bc8
commit
ff73173cd5
1 changed files with 2 additions and 2 deletions
|
|
@ -275,8 +275,8 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw, headerBuf)
|
||||||
event.y = values[6];
|
event.y = values[6];
|
||||||
event.buttons = values[7];
|
event.buttons = values[7];
|
||||||
event.sameScreen = values[8];
|
event.sameScreen = values[8];
|
||||||
} else if (type == 7) { //EnterNotify
|
} else if (type == 7 || type == 8) { //EnterNotify || LeaveNotify
|
||||||
event.name = 'EnterNotify'
|
event.name = type === 7 ? 'EnterNotify' : 'LeaveNotify';
|
||||||
var values = raw.unpack('LLLssssSC');
|
var values = raw.unpack('LLLssssSC');
|
||||||
event.root = values[0]
|
event.root = values[0]
|
||||||
event.wid = values[1]
|
event.wid = values[1]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue