Handle termination properly
* Tell the manager to close the display before terminating; * Log about quit request and process termination.
This commit is contained in:
@@ -22,6 +22,11 @@ module Uh
|
||||
@events.emit :connected, args: @display
|
||||
end
|
||||
|
||||
def disconnect
|
||||
@display.close
|
||||
@events.emit :disconnected
|
||||
end
|
||||
|
||||
def grab_key keysym, mod = nil
|
||||
mod_mask = KEY_MODIFIERS[@modifier]
|
||||
mod_mask |= KEY_MODIFIERS[mod] if mod
|
||||
|
Reference in New Issue
Block a user