Embedding a HWND window into an X11 window
Hi, How could I embed a HWND window created with CreateWindow() into an X11 window? Thanks! :-) -- Alexandre Bique
The systray/notification area code has to do that: http://source.winehq.org/source/dlls/winex11.drv/systray.c#L620 I don't think it can be done without modifying winex11.drv.
The "pipelight" guys put together a patch to support XEmbed: http://www.compholio.com/wine-compholio/download.php?file=0008-winex11-Add-m... That might do what he wants. Best, Erich On Thu, Aug 29, 2013 at 1:33 PM, Vincent Povirk <madewokherd(a)gmail.com> wrote:
The systray/notification area code has to do that: http://source.winehq.org/source/dlls/winex11.drv/systray.c#L620
I don't think it can be done without modifying winex11.drv.
Hi, This solutions implies to modify wine, so do you think that this patch or an improved version could be merged into wine? Because I don't want to require a custom version of wine. Thanks. On Thu, Aug 29, 2013 at 9:58 PM, Erich E. Hoover <erich.e.hoover(a)gmail.com> wrote:
The "pipelight" guys put together a patch to support XEmbed: http://www.compholio.com/wine-compholio/download.php?file=0008-winex11-Add-m...
That might do what he wants.
Best, Erich
On Thu, Aug 29, 2013 at 1:33 PM, Vincent Povirk <madewokherd(a)gmail.com> wrote:
The systray/notification area code has to do that: http://source.winehq.org/source/dlls/winex11.drv/systray.c#L620
I don't think it can be done without modifying winex11.drv.
-- Alexandre Bique
This solutions implies to modify wine, so do you think that this patch or an improved version could be merged into wine? Because I don't want to require a custom version of wine.
Even if it were merged, that would not give you the ability to use it from within a Windows or winelib program. For that you would need either some extra Wine-specific API's to allow this or an approach that does not rely on Wine (which may be possible using X11 to reparent Wine's windows, but would be a hacky approach).
On Thu, Aug 29, 2013 at 11:02 PM, Vincent Povirk <madewokherd(a)gmail.com> wrote:
This solutions implies to modify wine, so do you think that this patch or an improved version could be merged into wine? Because I don't want to require a custom version of wine.
Even if it were merged, that would not give you the ability to use it from within a Windows or winelib program. For that you would need either some extra Wine-specific API's to allow this or an approach that does not rely on Wine (which may be possible using X11 to reparent Wine's windows, but would be a hacky approach).
Could we extend winelib to let user embed win32 window into X11 window? -- Alexandre Bique
Could we extend winelib to let user embed win32 window into X11 window?
Wouldn't you do this at the toolkit level? (in your winelib app) like gtkplug+gtksocket or something like that?? ie: in Gtk+ https://developer.gnome.org/gtk3/3.7/GtkPlug.html I was thinking about testing this out in a gtk-based winelib app, but i got distracted implementing custom theming + some other bits...lol cheerz jordan On Thu, Aug 29, 2013 at 5:14 PM, Alexandre Bique <bique.alexandre(a)gmail.com>wrote:
On Thu, Aug 29, 2013 at 11:02 PM, Vincent Povirk <madewokherd(a)gmail.com> wrote:
This solutions implies to modify wine, so do you think that this patch or an improved version could be merged into wine? Because I don't want to require a custom version of wine.
Even if it were merged, that would not give you the ability to use it from within a Windows or winelib program. For that you would need either some extra Wine-specific API's to allow this or an approach that does not rely on Wine (which may be possible using X11 to reparent Wine's windows, but would be a hacky approach).
Could we extend winelib to let user embed win32 window into X11 window?
-- Alexandre Bique
Am 29.08.2013 21:58, schrieb Erich E. Hoover:
The "pipelight" guys put together a patch to support XEmbed: http://www.compholio.com/wine-compholio/download.php?file=0008-winex11-Add-m...
That might do what he wants.
might be interesting to clean/fix it up and try to get it upstream, no?
On Thu, Aug 29, 2013 at 2:43 PM, André Hentschel <nerv(a)dawncrow.de> wrote:
Am 29.08.2013 21:58, schrieb Erich E. Hoover:
The "pipelight" guys put together a patch to support XEmbed: http://www.compholio.com/wine-compholio/download.php?file=0008-winex11-Add-m...
That might do what he wants.
might be interesting to clean/fix it up and try to get it upstream, no?
I'm encouraging them to submit it for review, they're concerned that since it requires external applications to be conscious of Wine's behavior that Alexandre won't accept it. Best, Erich
participants (5)
-
Alexandre Bique -
André Hentschel -
Erich E. Hoover -
jordan -
Vincent Povirk