Handle unmap_notify X events in Manager

This commit is contained in:
Thibault Jouan
2015-04-20 10:18:11 +00:00
parent 09d7b6ebb5
commit a052140921
2 changed files with 13 additions and 0 deletions

View File

@@ -302,6 +302,15 @@ module Uh
manager.handle event
end
end
context 'when unmap_notify event is given' do
let(:event) { double 'event', type: :unmap_notify, window: :window }
it 'unmap the event window' do
expect(manager).to receive(:unmap).with :window
manager.handle event
end
end
end
end
end