Forum: Ruby ruby and gui on X11 based displays

Posted by saLOUt (Guest)
on 2010-02-08 18:02
(Received via mailing list)
Hi all,

how can I reparent a X11 window with ruby?

For C++ there is a Xlib interface which provides the function call
"XReparentWindow".

Greets Robert
Posted by Joel VanderWerf (Guest)
on 2010-02-09 02:35
(Received via mailing list)
saLOUt wrote:
> Hi all,
> 
> how can I reparent a X11 window with ruby?
> 
> For C++ there is a Xlib interface which provides the function call
> "XReparentWindow".

IIRC Fox/FXRuby has reparent, but I've never used it.
Posted by Christoph Kappel (unexist)
on 2010-02-09 12:26
(Received via mailing list)
You could use ffi and xlib to use XReparentWindow(), this also requires 
to open a connection to the XServer.

---- On Tue, 09 Feb 2010 02:32:28 +0100 Joel VanderWerf 
<joelvanderwerf@gmail.com> wrote ----
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.