Implement Client#kill and Client#kill!

This commit is contained in:
Thibault Jouan committed 2015-04-29 01:33:13 +00:00
1 parent 4050d52af7
commit f26e16fe6e
3 files changed
+50 -3

No files matched your search

+14
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