Implement Client#hide

This commit is contained in:
Thibault Jouan
2015-04-16 18:39:12 +00:00
parent 870e11a702
commit 3cf62cc07d
2 changed files with 40 additions and 4 deletions

View File

@@ -1,13 +1,14 @@
module Uh
module WM
class Client
attr_reader :window
attr_reader :window, :unmap_count
attr_accessor :geo
def initialize window, geo = nil
@window = window
@geo = geo
@visible = false
@window = window
@geo = geo
@visible = false
@unmap_count = 0
end
def to_s
@@ -40,6 +41,13 @@ module Uh
@visible = true
self
end
def hide
@window.unmap
@visible = false
@unmap_count += 1
self
end
end
end
end