[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: window id from process Id
From: David Boosalis <david.boosalis () gmail ! com>
Date: 2009-04-11 14:10:03
Message-ID: 870c99310904110710n4337b276ga02ae3fbdc1dac31 () mail ! gmail ! com
[Download RAW message or body]
Thanks for you answer Thomas.
Thiago. I want to do it for vncviewer which will not take such an
option as wid. Your way would be more desirable as the way I have it
now will cause the window to be shown twice, once on its own then
again when it gets into q11containerwidget. That is unless i can do
something like hide vncviewer upon start up.
I have not looked at the code of vncviewr maybe it is easy to take
from being a application to a widget wrapped in Qt
On 4/11/09, Thiago Macieira <thiago@kde.org> wrote:
> David Boosalis wrote:
>>I want to launch an x windows application from a QProcess and then take
>> the window id and then move the X application to a a
>> QX11EmbedContainer .
>>
>>I can use xwininfo which involves using the cursor to accomplish this,
>> but I would like to do it all grammatically. Is there and nifty KWin
>> API for getting the window ids from a process id.
>
> Hi David
>
> I think that's the wrong approach. You shouldn't be trying to list all
> windows a process has.
>
> You should be asking the program you're launching to embed itself. For
> example, mplayer has that option:
>
> -wid <window ID> (also see -guiwid) (X11, OpenGL and DirectX only)
> This tells MPlayer to attach to an existing window. Useful to embed
> MPlayer in a browser (e.g. the plugger extension).
>
> If you look at the examples in
> http://doc.trolltech.com/4.5/qx11embedcontainer.html and in
> http://doc.trolltech.com/4.5/qx11embedwidget.html, you'll see that the
> embed container doesn't try to embed: it asks the client to embed itself
> into its container.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic