Implement Manager#unmap

This commit is contained in:
Thibault Jouan
2015-04-20 10:17:51 +00:00
parent 7722909c22
commit 09d7b6ebb5
2 changed files with 60 additions and 0 deletions

View File

@@ -61,6 +61,16 @@ module Uh
@events.emit :manage, args: client
end
def unmap window
return unless client = client_for(window)
if client.unmap_count > 0
client.unmap_count -= 1
else
@clients.delete client
@events.emit :unmanage, args: client
end
end
def handle_next_event
handle @display.next_event
end