Log X events received by the manager

This commit is contained in:
Thibault Jouan
2015-04-16 13:19:29 +00:00
parent 6ad1735775
commit d781a48837
3 changed files with 32 additions and 0 deletions

View File

@@ -116,6 +116,13 @@ module Uh
end
describe '#handle' do
let(:event) { double 'event', type: :any }
it 'emits :xevent event with the X event' do
events.on :xevent, &block
manager.handle event
end
context 'when key_press event is given' do
let(:mod_mask) { KEY_MODIFIERS[modifier] }
let(:event) do