Re: Embedding a HWND window into an X11 window

2013-09-10 Thread jordan
> 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
wrote:

> On Thu, Aug 29, 2013 at 11:02 PM, Vincent Povirk 
> 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
>
>
>



Re: Embedding a HWND window into an X11 window

2013-08-31 Thread Alexandre Bique
On Thu, Aug 29, 2013 at 11:02 PM, Vincent Povirk  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




Re: Embedding a HWND window into an X11 window

2013-08-31 Thread Alexandre Bique
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
 wrote:
> The "pipelight" guys put together a patch to support XEmbed:
> http://www.compholio.com/wine-compholio/download.php?file=0008-winex11-Add-minimal-XEmbed-client-support.patch
>
> That might do what he wants.
>
> Best,
> Erich
>
> On Thu, Aug 29, 2013 at 1:33 PM, Vincent Povirk  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




Re: Embedding a HWND window into an X11 window

2013-08-29 Thread Vincent Povirk
> 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).




Re: Embedding a HWND window into an X11 window

2013-08-29 Thread Erich E. Hoover
On Thu, Aug 29, 2013 at 2:43 PM, André Hentschel  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-minimal-XEmbed-client-support.patch
>>
>> 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




Re: Embedding a HWND window into an X11 window

2013-08-29 Thread André Hentschel
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-minimal-XEmbed-client-support.patch
> 
> That might do what he wants.

might be interesting to clean/fix it up and try to get it upstream, no?





Re: Embedding a HWND window into an X11 window

2013-08-29 Thread 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-minimal-XEmbed-client-support.patch

That might do what he wants.

Best,
Erich

On Thu, Aug 29, 2013 at 1:33 PM, Vincent Povirk  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.
>
>




Re: Embedding a HWND window into an X11 window

2013-08-29 Thread Vincent Povirk
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.




Embedding a HWND window into an X11 window

2013-08-29 Thread Alexandre Bique
Hi,

How could I embed a HWND window created with CreateWindow() into an X11 window?

Thanks! :-)
-- 
Alexandre Bique