uh-wm/lib/uh/wm/client.rb
2015-04-16 13:18:28 +00:00

26 lines
412 B
Ruby

module Uh
module WM
class Client
attr_reader :window
attr_accessor :geo
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