Handle and forward expose events to the layout

This commit is contained in:
Thibault Jouan committed 2015-04-22 09:55:25 +00:00
1 parent eb9c8d16db
commit 009d5dbedd
3 files changed
+13

No files matched your search

+4
View File
@@ -120,6 +120,10 @@ module Uh
destroy event.window
end
def handle_expose event
@events.emit :expose, args: event.window
end
def handle_map_request event
map event.window
end
+4
View File
@@ -123,6 +123,10 @@ module Uh
log "Updating client #{client}"
layout.update client
end
@events.on :expose do |window|
log "Exposing window: #{window}"
layout.expose window
end
end
def register_keybinds_hooks