mirror of
https://github.com/danbulant/node-x11
synced 2026-06-15 04:31:17 +00:00
route event to parent if parent id exist
This commit is contained in:
parent
bcc4eba348
commit
b89376a00e
1 changed files with 5 additions and 0 deletions
|
|
@ -482,6 +482,11 @@ XClient.prototype.expectReplyHeader = function()
|
|||
if (ee) {
|
||||
ee.emit('event', ev);
|
||||
}
|
||||
if (ev.parent) {
|
||||
ee = client.event_consumers[ev.parent];
|
||||
if (ee)
|
||||
ee.emit('child-event', ev);
|
||||
}
|
||||
client.expectReplyHeader();
|
||||
} );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue