http://bugs.winehq.org/show_bug.cgi?id=33542
Bug #: 33542 Summary: EnableWindow calls ReleaseCapture when mouse captured on child window Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: orzhvs@gmail.com Classification: Unclassified
Created attachment 44392 --> http://bugs.winehq.org/attachment.cgi?id=44392 WINEDEBUG=+relay,+message wine /usr/local/vboxvm/vmshare/Spy.exe 2>&1 | grep -E SetCapture|ReleaseCapture|LBUTTONDOWN|LBUTTONUP|EnableWindow > out.txt
When EnableWindow disabling a window in Wine, mouse capture in its child window gets lost. As far as I tested in windows, capture is released only when disabling the exact captured window, rather than its parent window.
There's a tool named 'Spy32' ( download at http://www.woodmann.com/RCE-CD-SITES/Protools/files/utilities/spy.zip ), please try picking window by dragging the 'target' icon to target window, it will misbehave like the mouse button never released. In further debug info ( attached ) I saw it disable its main window to avoid picking itself, it indeed plans to re-enable the window when mouse button is up but it dose not as capture has been released and no WM_LBUTTONUP is received.
http://bugs.winehq.org/show_bug.cgi?id=33542
--- Comment #1 from Guo Jian orzhvs@gmail.com 2013-05-07 15:22:09 CDT --- Created attachment 44393 --> http://bugs.winehq.org/attachment.cgi?id=44393 To simplify it, I've wrote a demo to simulate the logic of Spy's window picker.
http://bugs.winehq.org/show_bug.cgi?id=33542
--- Comment #2 from Guo Jian orzhvs@gmail.com 2013-05-07 15:23:28 CDT --- Created attachment 44394 --> http://bugs.winehq.org/attachment.cgi?id=44394 Also a built exe is avaliable.
http://bugs.winehq.org/show_bug.cgi?id=33542
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source, testcase CC| |fracting@gmail.com
--- Comment #3 from Qian Hong fracting@gmail.com 2013-05-07 15:38:24 CDT --- Thanks for the report.
Would you want to rewrite your test case in plain C and integrate to Wine's test framework?
I think you may want to have a look at dlls/user32/tests/msg.c and dlls/user32/tests/win.c
Cheers!
http://bugs.winehq.org/show_bug.cgi?id=33542
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #44393|0 |1 is patch| | Attachment #44393|text/x-c++src |text/plain mime type| |
--- Comment #4 from Qian Hong fracting@gmail.com 2013-05-07 15:39:42 CDT --- Comment on attachment 44393 --> http://bugs.winehq.org/attachment.cgi?id=44393 To simplify it, I've wrote a demo to simulate the logic of Spy's window picker.
Please check the 'patch' option when attaching patches to bugzilla, and make sure MIME Type is text/plain. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=33542
--- Comment #5 from Qian Hong fracting@gmail.com 2013-05-07 15:40:55 CDT --- What's your wine version? Please set the 'Version' field to what you tested. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=33542
--- Comment #6 from Guo Jian orzhvs@gmail.com 2013-05-07 15:48:37 CDT ---
Thanks for the report.
Would you want to rewrite your test case in plain C and integrate to Wine's test framework?
I think you may want to have a look at dlls/user32/tests/msg.c and dlls/user32/tests/win.c
Cheers!
Thanks, I'll have a try then.
Comment on attachment 44393 [details] To simplify it, I've wrote a demo to simulate the logic of Spy's window picker.
Please check the 'patch' option when attaching patches to bugzilla, and make sure MIME Type is text/plain. Thanks!
I'll remember next time, thank you for reminding me :)(In reply to comment #3)
http://bugs.winehq.org/show_bug.cgi?id=33542
Guo Jian orzhvs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.5.29
http://bugs.winehq.org/show_bug.cgi?id=33542
Julian Rüger jr98@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=33542
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=33542
--- Comment #7 from Austin English austinenglish@gmail.com --- Is this still an issue in 1.7.36?
https://bugs.winehq.org/show_bug.cgi?id=33542
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #8 from joaopa jeremielapuree@yahoo.fr --- I do not understand the bug? Does the bug still occur with current wine(4.0-rc1)?
https://bugs.winehq.org/show_bug.cgi?id=33542
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #44393|1 |0 is patch| |
https://bugs.winehq.org/show_bug.cgi?id=33542
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Keywords|patch |