http://bugs.winehq.org/show_bug.cgi?id=12525
Summary: windows not setting focus when a user selects a program Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: msclrhd@gmail.com
1. Open an application (e.g. notepad) 2. Enter some text into it (e.g. "Hello") 3. Use Ctrl+Tab (in Ubuntu) to go to a different application 4. Use Ctrl+Tab to go to the application opened in [1]
The edit control should get the focus, but is not. That is, it does not have the blinking edit cursor, and doing things like pressing Ctrl+A don't work.
Other applications I have seen this in: * Cepstral SwiftTalker (http://www.cepstral.com/downloads/) * WinMerge (http://winmerge.org/)
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #1 from Lei Zhang thestig@google.com 2008-04-12 03:29:19 --- Did this start happening recently? You may want to run a regression test. You're using metacity, right?
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #2 from Reece Dunn msclrhd@gmail.com 2008-04-12 03:55:30 --- This is using Ubuntu 7.10 (Gnome). I don't know if it started happening recently, as I have just started doing random(ish) application testing.
If the focus is restored to a dialog (e.g. the one in bug 12527), then the focus rect is drawn on the radio button that has the focus.
It looks like this is where there is a window with a client window that is an edit control (this may be applicable to other controls in the client area, but haven't checked). It could be either a WM_SETFOCUS that is not being sent properly by the parent window, or a WM_ACTIVATEAPP message that isn't being called (Windows sends a WM_ACTIVATEAPP message when you move onto an application, e.g. using Ctrl+Tab).
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-12 05:47:44 --- This works just fine under Ubuntu 7.04/Metacity 2.18.2
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #4 from Reece Dunn msclrhd@gmail.com 2008-04-12 06:41:21 --- On Ubuntu 7.10 (Gnome), using Ctrl+Tab to switch between a Wine application (e.g. notepad) does not switch the focus. However, pressing the mouse button on the content of the parent window (e.g. the menu bar in notepad) correctly sets the focus.
Therefore, this looks like it may be a bug processing the WM_ACTIVATEAPP message.
I can reproduce this 100% of the time on different applications.
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #5 from Austin English austinenglish@gmail.com 2008-04-12 22:21:13 --- Works fine in kubuntu hardy/kde 4.
http://bugs.winehq.org/show_bug.cgi?id=12525
--- Comment #6 from Reece Dunn msclrhd@gmail.com 2008-04-13 08:44:35 --- I am also seeing this if you select the application from the application bar in Gnome. However, if you minimize then maximize the window, it correctly gains the focus.
If I set the Graphics option in winecfg to emulate a desktop, run winefile, open the application from there and switch between them, the focus is set correctly. Also, if I tell Wine to manage the windows directly (not the Window Manager), then it works there as well.
Therefore, it looks like it is a Window Manager configuration issue, bug or the WM is otherwise behaving differently to how Wine expects it to behave.
http://bugs.winehq.org/show_bug.cgi?id=12525
Reece Dunn msclrhd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #7 from Reece Dunn msclrhd@gmail.com 2008-04-24 15:47:11 --- I've upgraded to Ubuntu 8.04 and this is now working correctly for me. I'm closing this as invalid.
http://bugs.winehq.org/show_bug.cgi?id=12525
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Austin English austinenglish@gmail.com 2008-10-13 14:40:11 --- Closing invalid.
http://bugs.winehq.org/show_bug.cgi?id=12525
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified