Implement Manager#destroy

This commit is contained in:
Thibault Jouan
2015-04-21 02:20:41 +00:00
parent 0423d6df9d
commit 31a326e7eb
2 changed files with 35 additions and 0 deletions

View File

@@ -71,6 +71,12 @@ module Uh
end
end
def destroy window
return unless client = client_for(window)
@clients.delete client
@events.emit :unmanage, args: client
end
def handle_next_event
handle @display.next_event
end