mirror of
https://github.com/danbulant/node-x11
synced 2026-05-19 04:18:35 +00:00
Parse FocusIn and FocusOut events
This commit is contained in:
parent
97e3600467
commit
eeb9d58310
1 changed files with 8 additions and 1 deletions
|
|
@ -322,7 +322,14 @@ XClient.prototype.unpackEvent = function(type, seq, extra, code, raw, headerBuf)
|
|||
event.x = values[5];
|
||||
event.y = values[6];
|
||||
event.values = values
|
||||
|
||||
} else if (type == 9) { // FocusIn
|
||||
event.name = "FocusIn";
|
||||
event.mode = raw.unpack('C')[0];
|
||||
event.wid = extra;
|
||||
} else if (type == 10) { // FocusOut
|
||||
event.name = "FocusOut";
|
||||
event.mode = raw.unpack('C')[0];
|
||||
event.wid = extra;
|
||||
} else if (type == 12) { // Expose
|
||||
var values = raw.unpack('SSSSS');
|
||||
event.name = 'Expose'
|
||||
|
|
|
|||
Loading…
Reference in a new issue