Implement Manager#flush
This commit is contained in:
parent
18667e2492
commit
0164b52465
@ -35,6 +35,10 @@ module Uh
|
||||
@events.emit :disconnected
|
||||
end
|
||||
|
||||
def flush
|
||||
@display.flush
|
||||
end
|
||||
|
||||
def grab_key keysym, mod = nil
|
||||
mod_mask = KEY_MODIFIERS[@modifier]
|
||||
mod_mask |= KEY_MODIFIERS[mod] if mod
|
||||
|
@ -82,6 +82,13 @@ module Uh
|
||||
end
|
||||
end
|
||||
|
||||
describe '#flush' do
|
||||
it 'flushes the display' do
|
||||
expect(display).to receive :flush
|
||||
manager.flush
|
||||
end
|
||||
end
|
||||
|
||||
describe '#grab_key' do
|
||||
it 'grabs given key on the display' do
|
||||
expect(manager.display)
|
||||
|
Loading…
x
Reference in New Issue
Block a user