https://bugs.winehq.org/show_bug.cgi?id=46274
Bug ID: 46274 Summary: Total Commander 8.52a: Closing the Multi-Rename window after using it is slow and messes up the listbox caret Product: Wine Version: 4.0-rc1 Hardware: x86 URL: http://web.archive.org/web/20160121065109/http://total cmd2.s3.amazonaws.com/tcmd852ax32.exe OS: Linux Status: ASSIGNED Severity: normal Priority: P2 Component: user32 Assignee: gabrielopcode@gmail.com Reporter: gabrielopcode@gmail.com CC: wine-bugs@winehq.org Distribution: ---
1) Launch Total Commander and press CTRL+M or go to Files->Multi Rename Tool... 2) Press "Start!" which should work fine. 3) Now close the Multi-Rename window (i.e. click on Close or press ESC)
Observe how there's a few seconds of freeze lag, after which the listbox caret in the panel is gone. Switching to the other panel and back brings it back.
I did a few investigations and it seems this is not a problem with the listbox at all. Rather, it's a problem with recursive SetFocus and window activation, that's why it's so slow (until it reaches a limit). I'll try to fix it like on Windows so I'll have to see how Windows handles this situation (with testcases of course).
It's interesting to note that this does not happen if you don't click on "Start!" in the Multi-Rename Tool.