[Bug 19874] If mouse focus lost then keyboard focus never recovered

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Oct 19 01:59:43 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=19874





--- Comment #26 from Michael Abbott <michael at araneidae.co.uk>  2009-10-19 01:59:43 ---
Well.  Now that *is* interesting.  Testing with XFCE here.

1.  Running notepad in a virtual desktop and passing focus by clicking works as
before: keyboard focus is successfully handed over, but the title bar colour
does not update.

*However* ...

2.  Alt-Tab loses the focus!  Wine appears in XFCE's Alt-Tab popup window, but
when I deposit the focus back on wine's virtual desktop the keyboard focus is
lost.  

3.  If I run notepad in its own window (unset "Enable virtual desktop") then
Alt-Tab seems to work fine.  Everything below is only applicable to the virtual
desktop, this case seems to work just fine.

(Oh, btw, it seems Managed=="N" was my own deliberate doing, not sure why.)


Playing around a bit with (2) is rather confusing.  Try this and follow along
with me:

1. Run `wine notepad` with a virtual desktop enabled
2. Type in notepad to verify it's got the focus
3. Alt-Tab to another window
3.1 Notice that typing in the new window works
3.2 Notice that the File menu selection on Notepad is depressed (it saw the
Alt)
3.3 Notice that Alt-Tab doesn't work at all (*beep*).  Whoops!
4. Mouse click anywhere once to .1 release the File menu and .2 get Alt-Tab
working again
5. Alt-Tab back to notepad and see that the keyboard is NOT working.

Hmm.  There's a combination of mouse clicks, key presses and Alt-Tabs that
successfully does return focus to notepad, but it's a bit difficult to pin
down.

Oh DAMN IT!!!

The keyboard focus is FOLLOWING THE MOUSE!  Argh.

Let me make something quite clear here: I do NOT have "focus follows mouse" set
on my desktop, so this is clearly part of the bug.  Sigh.  Let's start again.

1. Run `wine notepad` in a virtual desktop.
2.1 Notice that the notepad title bar is grey, no focus
2.2 Notice that typing only goes into notepad when the mouse is over the
notepad window.  Whoops...
3. Alt-Tab to another window ... with the mouse *over* notepad.  Behaviour as
before, need to click somewhere else to get Alt- back.
4. Alt-Tab to another window with the mouse *not* over notepad.  Everything
seems normal -- hmm.
5. Alt-Tab back to notepad.  Does the keyboard work?  Well, where's that mouse
got to?  Oh dear.

Ho ho ho.  Well, looks like I need to re-run the fluxbox test, and I'll also
give Gnome a go.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list