http://bugs.winehq.org/show_bug.cgi?id=34594
Bug #: 34594 Summary: Context menus stay on the screen in Chessmaster 10 Product: Wine Version: 1.7.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: winebugs140@gmail.com Classification: Unclassified
Created attachment 46076 --> http://bugs.winehq.org/attachment.cgi?id=46076 Chessmaster log
In Chessmaster 10, if you evoke the game context menu with the right click, it does not disappear when you click with the left mouse button on the empty space. The similar problem affects drop-down menus, when choosing options from the game menu bar.
Can be reproduced in the demo (check out the link).
Tested with: Ubuntu 13.04, GeForce 9600M GS (NVIDIA driver 310) Mac OS X 10.7.5, ATI HD 2600 Pro, Mac Driver/X11
http://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.fileplanet.com/1 | |42269/download/Chessmaster- | |10th-Edition-Trial-Client See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=34592
http://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #1 from WineBuG winebugs140@gmail.com 2013-09-25 13:11:45 CDT --- Created attachment 46077 --> http://bugs.winehq.org/attachment.cgi?id=46077 There can even be many context menus on the screen
http://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #2 from WineBuG winebugs140@gmail.com 2013-09-26 06:18:29 CDT --- This bug doesn't affect Windows Vista.
http://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #3 from WineBuG winebugs140@gmail.com --- Not fixed in Wine 1.7.11. Check out the demo, please!
http://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.fileplanet.com/1 |https://archive.org/downloa |42269/download/Chessmaster- |d/Chessmaster10thEditionDem |10th-Edition-Trial-Client |o/Chessmaster10thEditionDem | |o.exe
http://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #4 from WineBuG winebugs140@gmail.com --- Not fixed in Wine 1.7.15
https://bugs.winehq.org/show_bug.cgi?id=34594
multitude multitude@internode.on.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |multitude@internode.on.net
--- Comment #5 from multitude multitude@internode.on.net --- Reproducible in 1.7.33.
A workaround for the drop-downs is click on their headings eg. 'File'.
A workaround for game context menus is to click on the menu headings 'Actions', 'Mentor', 'Preferences' or 'Windows'.
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #6 from WineBuG winebugs140@gmail.com --- (In reply to multitude from comment #5)
Reproducible in 1.7.33.
A workaround for the drop-downs is click on their headings eg. 'File'.
A workaround for game context menus is to click on the menu headings 'Actions', 'Mentor', 'Preferences' or 'Windows'.
Does this bug affect Chessmaster 11 as well?
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #7 from multitude multitude@internode.on.net --- (In reply to WineBuG from comment #6)
(In reply to multitude from comment #5)
Reproducible in 1.7.33.
A workaround for the drop-downs is click on their headings eg. 'File'.
A workaround for game context menus is to click on the menu headings 'Actions', 'Mentor', 'Preferences' or 'Windows'.
Does this bug affect Chessmaster 11 as well?
Yes. Reproducible in Chessmaster 11 with Wine v1.7.33.
For those who don't know, the GUI between Chessmaster 10 and 11 received very few changes, so if there's an interface bug in Chessmaster 10, it's more than likely in 11 as well.
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Context menus stay on the |Context menus stay on the |screen in Chessmaster 10 |screen in Chessmaster 10 | |and Chessmaster 11
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #8 from WineBuG winebugs140@gmail.com --- (In reply to multitude from comment #7)
(In reply to WineBuG from comment #6)
(In reply to multitude from comment #5)
Reproducible in 1.7.33.
A workaround for the drop-downs is click on their headings eg. 'File'.
A workaround for game context menus is to click on the menu headings 'Actions', 'Mentor', 'Preferences' or 'Windows'.
Does this bug affect Chessmaster 11 as well?
Yes. Reproducible in Chessmaster 11 with Wine v1.7.33.
For those who don't know, the GUI between Chessmaster 10 and 11 received very few changes, so if there's an interface bug in Chessmaster 10, it's more than likely in 11 as well.
I wonder whether some of the Chessmaster 10 and 11 bugs that I've reported could be reproduced in older versions of Chessmaster. Unfortunately, I've got only Chessmaster 10.
https://bugs.winehq.org/show_bug.cgi?id=34594
bkbk9@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bkbk9@yahoo.ca
--- Comment #9 from bkbk9@yahoo.ca --- Reproducible in Chessmaster 9, with similar workarounds.
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Context menus stay on the |Context menus stay on the |screen in Chessmaster 10 |screen in Chessmaster 9000, |and Chessmaster 11 |10 and 11
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maiktapwagner@aol.com
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nallekarhu_80@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=34594
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #10 from super_man@post.com --- The same wine 1.9.8-git and staging 1.9.8
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #11 from WineBuG winebugs140@gmail.com --- Not that I'm getting impatient, but I remember seeing this bug in distant 2008 on Ubuntu 8.04... And we still don't even know what is the cause. :P
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry@baikal.ru
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #12 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 56536 --> https://bugs.winehq.org/attachment.cgi?id=56536 patch
Chessmaster's menu implementation depends on WM_WINDOWPOSCHANGED message sent to (a being deactivated) menu window when one clicks on the main window.
Attached patch fixes the problem with menu deactivation in Chessmaster, but may be a not proper fix, and there might be some side effects.
This needs more investigation.
https://bugs.winehq.org/show_bug.cgi?id=34594
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #13 from Dmitry Timoshkov dmitry@baikal.ru --- And confirming.
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #14 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Dmitry Timoshkov from comment #12)
Chessmaster's menu implementation depends on WM_WINDOWPOSCHANGED message sent to (a being deactivated) menu window when one clicks on the main window.
It's a WM_WINDOWPOSCHANGING message actually.
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Context menus stay on the |Context menus stay on the |screen in Chessmaster 9000, |screen in Chessmaster 9000, |10 and 11 |10 and 11 | |(WM_WINDOWPOSCHANGING | |message related)
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also|http://bugs.winehq.org/show | |_bug.cgi?id=34592 |
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Context menus stay on the |Context menus and drop-down |screen in Chessmaster 9000, |menus stay on the screen in |10 and 11 |Chessmaster 9000, 10 and 11 |(WM_WINDOWPOSCHANGING |(WM_WINDOWPOSCHANGING |message related) |message related)
https://bugs.winehq.org/show_bug.cgi?id=34594
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erich.e.hoover@wine-staging | |.com, michael@fds-team.de, | |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #15 from bkbk9@yahoo.ca --- (In reply to Dmitry Timoshkov from comment #12)
Created attachment 56536 [details] patch
Chessmaster's menu implementation depends on WM_WINDOWPOSCHANGED message sent to (a being deactivated) menu window when one clicks on the main window.
Attached patch fixes the problem with menu deactivation in Chessmaster, but may be a not proper fix, and there might be some side effects.
This needs more investigation.
Applied the patch to Wine 2.0 rc2 and gave this a *quick* test. It seems to work, context/dropdown menus got cleared by clicking elsewhere, I didn't notice any side effects but I agree this needs more testing.
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #16 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Dmitry Timoshkov from comment #12)
Created attachment 56536 [details] patch
Chessmaster's menu implementation depends on WM_WINDOWPOSCHANGED message sent to (a being deactivated) menu window when one clicks on the main window.
Attached patch fixes the problem with menu deactivation in Chessmaster, but may be a not proper fix, and there might be some side effects.
This needs more investigation.
Probably the described behaviour is specific for topmost windows.
It seems that when main window gets activated in order to keep the menu window (which is topmost) on top of main window the system re-arranges windows which leads to WM_WINDOWPOSCHANGING+WM_WINDOWPOSCHANGED messages sent. Since Wine uses WM features to manage topmost windows there is no need for Wine to actually re-arrange the windows, Wine just needs to somehow emulate the expected by applications message sequences.
Probably the attached patch may be improved by adding some checks for a deactivated window being topmost (WS_EX_TOPMOST style bit) and add SWP_NOZORDER in addition to SWP_NOACTIVATE to avoid unwanted side effects. Another approach is to move SetWindowPos() call to x11drv's window activation handling code.
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #17 from bkbk9@yahoo.ca --- (In reply to bkbk9 from comment #15)
(In reply to Dmitry Timoshkov from comment #12)
Created attachment 56536 [details] patch
Chessmaster's menu implementation depends on WM_WINDOWPOSCHANGED message sent to (a being deactivated) menu window when one clicks on the main window.
Attached patch fixes the problem with menu deactivation in Chessmaster, but may be a not proper fix, and there might be some side effects.
This needs more investigation.
Applied the patch to Wine 2.0 rc2 and gave this a *quick* test. It seems to work, context/dropdown menus got cleared by clicking elsewhere, I didn't notice any side effects but I agree this needs more testing.
Noticed a side effect when experimenting with the context/dropdown menus then trying to alt-tab or click on other running windows/apps, seems like Chessmaster would not let go and stays on top, so you have to explicitly minimize it in order to activate other app's window.
https://bugs.winehq.org/show_bug.cgi?id=34594
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/winex11-WM_WIN | |DOWPOSCHANGING
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #18 from bkbk9@yahoo.ca --- Re-tested with wine-staging 2.0-rc4, worked well and without the side effect.
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #19 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to bkbk9 from comment #18)
Re-tested with wine-staging 2.0-rc4, worked well and without the side effect.
Thanks for testing! :)
https://bugs.winehq.org/show_bug.cgi?id=34594
--- Comment #20 from bkbk9@yahoo.ca --- (In reply to Dmitry Timoshkov from comment #19)
(In reply to bkbk9 from comment #18)
Re-tested with wine-staging 2.0-rc4, worked well and without the side effect.
Thanks for testing! :)
Had to play some games :)
https://bugs.winehq.org/show_bug.cgi?id=34594
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/winex11-WM_WIN |er/patches/winex11-WM_WINDO |DOWPOSCHANGING |WPOSCHANGING CC| |nerv@dawncrow.de