Implement client visibility state
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user