uh-wm/lib/uh/wm/client.rb
2015-04-16 12:01:15 +00:00

25 lines
385 B
Ruby

module Uh
module WM
class Client
attr_reader :window
def initialize window, geo = nil
@window = window
@geo = geo
end
def to_s
"<#{wname}> (#{wclass}) #{@geo} win: #{@window}"
end
def wname
@wname ||= @window.name
end
def wclass
@wclass ||= @window.wclass
end
end
end
end