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