Method: Wmadd::X::Window#parent
- Defined in:
- lib/wmadd/x.rb
#parent ⇒ Object
513 514 515 516 517 518 519 520 521 522 |
# File 'lib/wmadd/x.rb', line 513 def parent root = ' '*8 parent = X11::UnsignedLong.malloc(Fiddle::RUBY_FREE) nchildren = X11::Int.malloc(Fiddle::RUBY_FREE) children_p = X11::Pointer.malloc(Fiddle::RUBY_FREE) ret = X11::XQueryTree(@display, @window, root, parent, children_p, nchildren) return if ret == 0 Window.new(@display_obj, parent.n) end |