[Bug 961] X11 Window parenting
Wine Bugs
wine-bugs at winehq.com
Sun Jun 22 06:45:05 CDT 2003
http://bugs.winehq.com/show_bug.cgi?id=961
------- Additional Comments From z_god at wanadoo.nl 2003-22-06 06:45 -------
Bug comments restored from Gmane.org:
DBMGUi.exe, which is a Visual Basic 6 application uses forms to present dialogs
on screen. Under wine these dialogs do not receive any mouse input and only
partial keyboard input. Also if a form activated with ShowModal fuction opens
another dialog box, it will not even display.
After debugging I found out that VB6 (or wine?) reparents (through
X11DRV_SetParent) these dialogs to the
main form. Under wine this means that these windows become subwindows of the
main form which firstly means that these windows will never become managed if
managed mode is set to "yes". Also this means that they will not get mouse
input (because dbmgui (or vb6?)) disables the main window when form is
displayed
and therefore WindowFromPoint-function will never return anything. And finally
this means that all these forms clip incorrectly to their parent window, and
may then be completely invisible because they are created in desktop
coordinates but are actually a child of a form whose coordinates are not
desktop coordinates.
These forms seemed to have only WS_CLIPCHILDREN+WS_MAXIMIZEBOX+0x80
as style
and WS_EX_DLGMODALFRAME as ExStyle.
I was able to continue my quest with dbmgui by forcing WS_EX_DLGMODALFRAME
windows to be child of the root window and then prohibiting X11_SetParent to
set new parent for windows that have WS_EX_DLGMODALFRAME set.
------- Additional Comments From tkujala <at> lut.fi 2002-08-12 01:10 -------
Actually it looks like that it is Wine that makes that reparenting thing,
under windows these dialogboxes have desktop window as parent. Only the owner
window should be set to main window.
------- Additional Comments From us <at> the-edmeades.demon.co.uk 2002-08-13
07:14 -------
Probably dup of 825
------- Additional Comments From tkujala <at> lut.fi 2002-08-13 07:49 -------
Yep, same bug. Bug search didn't work when I filled this one.
------- Additional Comments From tony_lambregts <at> telusplanet.net 2002-08-13
17:38 -------
*** This bug has been marked as a duplicate of 825 ***
------- Additional Comments From Speeddymon <at> yahoo.com 2002-09-19 13:22
-------
verified dupe ;)
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list