Implement client visibility state

This commit is contained in:
Thibault Jouan
2015-04-16 18:28:17 +00:00
parent 1a1f181313
commit 15f966654b
2 changed files with 19 additions and 2 deletions

View File

@@ -5,14 +5,23 @@ module Uh
attr_accessor :geo
def initialize window, geo = nil
@window = window
@geo = geo
@window = window
@geo = geo
@visible = false
end
def to_s
"<#{name}> (#{wclass}) #{@geo} win: #{@window}"
end
def visible?
@visible
end
def hidden?
not visible?
end
def name
@wname ||= @window.name
end