Skip to content

Commit

Permalink
window: Implement Window#[]
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Dec 31, 2017
1 parent a039d35 commit 3410ab6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/x_do/window.cr
Expand Up @@ -225,9 +225,12 @@ class XDo::Window
end

# Get the value associated with the *property* property.
# TODO: implement
#
# NOTE: Always returns a string, regardless of the underlying X11 atom. As a result,
# this method can return "garbage" strings for some property names.
def [](property : String)
raise "implement me!"
LibXDo.get_window_property(xdo_p, window, property, out value, out _, out _, out _)
String.new(value)
end

# Set the window's class name (`WM_CLASS` instance name) to *name*.
Expand Down

0 comments on commit 3410ab6

Please sign in to comment.