Implement Client#kill and Client#kill!

This commit is contained in:
Thibault Jouan
2015-04-28 11:52:15 +00:00
parent 4050d52af7
commit f26e16fe6e
3 changed files with 50 additions and 3 deletions

View File

@@ -66,6 +66,20 @@ module Uh
@window.focus
self
end
def kill
if @window.icccm_wm_protocols.include? :WM_DELETE_WINDOW
@window.icccm_wm_delete
else
@window.kill
end
self
end
def kill!
window.kill
self
end
end
end
end