1 From ba3951430c9ccbda30afe9bbd27c6c9c4ff61eaf Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Thu, 2 Oct 2008 13:55:41 -0500
4 Subject: [PATCH] winex11.drv: hack to allow changing the parent of virtual desktops
7 dlls/winex11.drv/desktop.c | 11 +++++++++--
8 1 files changed, 9 insertions(+), 2 deletions(-)
10 diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
11 index 2dbe932..14c2ab7 100644
12 --- a/dlls/winex11.drv/desktop.c
13 +++ b/dlls/winex11.drv/desktop.c
16 #include <X11/cursorfont.h>
22 @@ -131,8 +132,9 @@ void X11DRV_init_desktop( Window win, unsigned int width, unsigned int height )
23 Window X11DRV_create_desktop( UINT width, UINT height )
25 XSetWindowAttributes win_attr;
28 Display *display = thread_init_display();
33 @@ -147,7 +149,12 @@ Window X11DRV_create_desktop( UINT width, UINT height )
35 win_attr.colormap = None;
37 - win = XCreateWindow( display, DefaultRootWindow(display),
38 + if ((parent_str = getenv("WINE_DESKTOP_PARENT")))
39 + parent = (Window)atol(parent_str);
41 + parent = DefaultRootWindow(display);
43 + win = XCreateWindow( display, parent,
44 0, 0, width, height, 0, screen_depth, InputOutput, visual,
45 CWEventMask | CWCursor | CWColormap, &win_attr );