Class: ActiveWindowX::RootWindow
- Defined in:
- lib/active_window_x/root_window.rb
Overview
binding for a root Window on X11
Constant Summary
Constants inherited from Window
Instance Attribute Summary
Attributes inherited from Xid
Instance Method Summary collapse
Methods inherited from Window
#app_class, #app_class_prop, #app_name, #children, #command, #parent, #pid, #prop, #prop_atom_ids, #prop_atoms, #prop_raw, #root, #select_input, #set_wm_protocols, #title, #x_query_tree
Methods inherited from Xid
Constructor Details
This class inherits a constructor from ActiveWindowX::Xid
Instance Method Details
#active_window ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/active_window_x/root_window.rb', line 10 def active_window prop_val = prop '_NET_ACTIVE_WINDOW' if prop_val.nil? or prop_val.first == Xlib::None nil else Window.new(@display, prop_val.first) end end |