Handle and forward expose events to the layout

This commit is contained in:
Thibault Jouan
2015-04-22 09:55:25 +00:00
parent eb9c8d16db
commit 009d5dbedd
3 changed files with 13 additions and 0 deletions

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

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