Log X events received by the manager

This commit is contained in:
Thibault Jouan
2015-04-16 13:19:29 +00:00
parent 6ad1735775
commit d781a48837
3 changed files with 32 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ module Uh
end
def handle event
@events.emit :xevent, args: event
return unless respond_to? handler = "handle_#{event.type}".to_sym, true
send handler, event
end