aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-28 06:25:25 +0000
committermarha <marha@users.sourceforge.net>2010-04-28 06:25:25 +0000
commit8518c45ee46a907cfdc93f1b3f54f20ef210b0f8 (patch)
tree0146b723993e8ae2c3a03c46f7b556ff8c54525c /xorg-server/hw
parent777d70e1d6f7c1864a59a810f154ca2adb41e4e1 (diff)
downloadvcxsrv-8518c45ee46a907cfdc93f1b3f54f20ef210b0f8.tar.gz
vcxsrv-8518c45ee46a907cfdc93f1b3f54f20ef210b0f8.tar.bz2
vcxsrv-8518c45ee46a907cfdc93f1b3f54f20ef210b0f8.zip
In case of NativeWgl specify CS_OWNDC for the window class
Diffstat (limited to 'xorg-server/hw')
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwindow.c b/xorg-server/hw/xwin/winmultiwindowwindow.c
index fbde122a1..99f812e49 100644
--- a/xorg-server/hw/xwin/winmultiwindowwindow.c
+++ b/xorg-server/hw/xwin/winmultiwindowwindow.c
@@ -47,6 +47,7 @@
extern HICON g_hIconX;
extern HICON g_hSmallIconX;
extern HWND g_hDlgDepthChange;
+extern Bool g_fNativeGl;
/*
* Prototypes for local functions
@@ -74,7 +75,7 @@ void winInitMultiWindowClass(void)
{
/* Setup our window class */
wcx.cbSize=sizeof(WNDCLASSEX);
- wcx.style = CS_HREDRAW | CS_VREDRAW;
+ wcx.style = CS_HREDRAW | CS_VREDRAW | (g_fNativeGl ? CS_OWNDC : 0);
wcx.lpfnWndProc = winTopLevelWindowProc;
wcx.cbClsExtra = 0;
wcx.cbWndExtra = 0;