http://bugs.winehq.org/show_bug.cgi?id=32066
Bug #: 32066 Summary: Right click menu of QQ2012 system tray flushes and disappears Product: Wine Version: 1.5.15 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com Classification: Unclassified
To reproduce:
1. Download qq2011 http://dl_dir.qq.com/qqfile/qq/QQ2011/QQ2011.exe
2. Install QQ2011.exe
3. set atl80 to native, work around 30512
4. `winetricks -q riched20`, work around Bug 29636
5. `winetricks -q ie7`, work around Bug 29638
6. Start QQ.exe
7. login
8. right click on system tray icon
Expect result: Display a right-click menu
Actual result: The menu flushes in a moment and disappear without drawing completed.
commit f12c1c6630f0bf842dde9af10da4ab188ff16e94 Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 26 13:12:17 2012 +0200
winex11: Switch to an ARGB visual for layered windows with per-pixel alpha.
Still present in wine-1.5.16
http://bugs.winehq.org/show_bug.cgi?id=32066
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression URL| |http://dl_dir.qq.com/qqfile | |/qq/QQ2011/QQ2011.exe Regression SHA1| |f12c1c6630f0bf842dde9af10da | |4ab188ff16e94
http://bugs.winehq.org/show_bug.cgi?id=32066
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #1 from Alexandre Julliard julliard@winehq.org 2012-10-27 05:57:23 CDT --- I can't reproduce, it crashes on the login prompt for me (and I don't have an account anyway...)
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #2 from Qian Hong fracting@gmail.com 2012-10-27 06:41:29 CDT --- Hello,
(In reply to comment #1)
I can't reproduce, it crashes on the login prompt for me
Sorry for that, I forgot to mention Bug 27468 Did you build wine with CFLAGS="-O2" ? Compile dlls/user32/hook.c with CFLAGS="-O0" will work around the crashing bug.
(and I don't have an account anyway...)
Sorry for that, I though a WINEDEBUG=+xxx,+yyy will magic work for you :)
I just create a new account for testing:
Account name is: 1469264807 Password is winedebug
Please let me know if there is any problem with the account, or any issue with the Chinese UI of the app. (Unfortunately I can't reproduce the bug with QQ International version)
Enjoy the most popular IM of China! <evil grin>
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #3 from Qian Hong fracting@gmail.com 2012-10-27 06:46:39 CDT --- Created attachment 42278 --> http://bugs.winehq.org/attachment.cgi?id=42278 Screenshot for a strange workaround
Update:
There is a strange workaround for this bug.
If you move the QQ Main UI close enough to the system tray icon, then the right-click menu will display completely.
However, as the screenshot shows, then there is a Z-order bug: Expect result: Right click menu should be display above QQ Main UI Actual result: Right click menu display below QQ Main UI
The Z-order bug should be a seperate bug, I believe it was introduced in one of wine-1.5.xx, but I haven't do a regression test for that.
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2012-10-27 07:28:13 CDT --- Thanks. The problem is that we have to recreate the window to switch to the ARGB visual, and the window manager then gives focus back to the main window, which causes the app to take the menu down.
It works fine with a focus follows mouse wm policy, since the focus doesn't go back to the main window at that point. I don't think there's much we can do about this on the Wine side.
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #5 from Qian Hong fracting@gmail.com 2012-10-27 08:21:02 CDT --- Thanks for the work! Could you also take a look at Bug 31982 to see if it is a dup of this one?
(PS. QQ and Thunder are the most two important Win32 apps for Linux users according to my recent survey. It will be a great pity if none of them could work perfectly on Wine. LOL... )
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #6 from Qian Hong fracting@gmail.com 2012-10-27 08:29:30 CDT --- (In reply to comment #5)
(PS. QQ and Thunder are the most two important Win32 apps for Linux users according to my recent survey. It will be a great pity if none of them could work perfectly on Wine. LOL... )
LOL, forgot to say, I mean the most two important for Chinese Linux users.
http://bugs.winehq.org/show_bug.cgi?id=32066
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3ad40bf64732cbef4ba199a45ee | |fa12f4b491419 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2012-10-29 13:53:35 CDT --- It turns out that the app sets the layered flag before mapping the window, so it's possible to add a workaround. Should be fixed by 3ad40bf64732cbef4ba199a45eefa12f4b491419.
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #8 from Qian Hong fracting@gmail.com 2012-10-29 18:25:09 CDT --- (In reply to comment #7)
It turns out that the app sets the layered flag before mapping the window, so it's possible to add a workaround. Should be fixed by 3ad40bf64732cbef4ba199a45eefa12f4b491419.
Thanks a lot for the great work, works well for me!
Would you mind also take a look at Bug 32097, which is similar to this one? Hopefully we could also have a fix/workaround for that one.
Thanks!
http://bugs.winehq.org/show_bug.cgi?id=32066
--- Comment #9 from Qian Hong fracting@gmail.com 2012-10-29 19:25:41 CDT --- (In reply to comment #3)
However, as the screenshot shows, then there is a Z-order bug: Expect result: Right click menu should be display above QQ Main UI Actual result: Right click menu display below QQ Main UI
The Z-order bug should be a seperate bug, I believe it was introduced in one of wine-1.5.xx, but I haven't do a regression test for that.
Update: The Z-order bug has been reported as Bug 32098 Correct my previous comment to avoid confusing others: Actually the Z-order bug is not a regression, at least not a regression between wine-1.3.20 to wine-1.5.16.
Regards.
http://bugs.winehq.org/show_bug.cgi?id=32066
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2012-11-09 13:00:52 CST --- Closing bugs fixed in 1.5.17.
http://bugs.winehq.org/show_bug.cgi?id=32066
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Right click menu of QQ2012 |Right click menu of QQ2011 |system tray flushes and |system tray flushes and |disappears |disappears