If i switch workspaces (using the panel)and hover an unfocused-by-default window, it doesn't recieve focus, even if i have "focus follows mouse" enabled. Seems like the system/wm is too busy drawing another windows sometimes and doesn't notice the fact that i entered the area where another window is. Furthermore, sometimes that poor little window doesn't even get focus after i click it. I can even doubleclick and select some text in present on it without giving it focus. This bug is probably dependant on speed of the machine. Mine is Duron 850. For me, this often happens when i have a situation like in the attached screenshot, and i go to, say, workspace 7 (chat area) from workspace 2 (browsing area ;)), and hover window 3 quickly. Instead of Window 3 recieving focus, window 1 gets. Reproducible: Sometimes Steps to Reproduce: Try my method a few times, you might be succesfull in that. Or you might not. It happens on quite a random basis. rq@sugar:~ $ apt-cache policy libgtk2.0-0 libgtk2.0-0: Installed: 2.4.10-1ubuntu1 Candidate: 2.4.10-1ubuntu1 rq@sugar:~ $ apt-cache policy xfce4 xfce4: Installed: 4.2.0.xfld-4 Candidate: 4.2.0.xfld-4
Created attachment 183 a screenie of the panel, for illustration
I don't know how you change desktops, but the pager in the panel focuses windows when clicked, so it means that when cliking in a window and moving the mouse around, there is a unavoidable race between the pager and the WM.
Well, i can even click on a miniature of window 3, and still window 1 gets focused somewhy. Furthermore, IMHO, the WM should favor an event that comes later (in this case, focusing window along with the workspace happens before moving the mouse and hovering window 3 (or maybe the yet-clean place of the desktop where window 3 is drawn afterwards)).
I'm sorry, but I yet to be convinced that there is a bug here and I'm not sure I understand your problem (I know, you took time toi take screenshots and use numbvers, etc. the explanatiosn leaves me a bit confused) Here is how xfwm4 works, in focus follow mouse: 1) When changing desktops, xfwm4 looks for the window under the pointer on that desktop and niotifies the client that that window should be focused, or focus the last window focused on tha desktop. 2) When moving the window around, xfwm4 focus the windows using the received event timestamp, and that's correct. 3) When switching desktops using the pager in the panel, the pointer is not within a window (since it's in the pager), so 1) won't focus the the window under the pointer unless you clicked on a window in the pager in which case xfwm4 will focus that window (since the pager will not send a timestamp event if I'm not mistaken)
I found something that could be confusing in focus follow mouse: If a window is placed under the panel while you use the panel to switch desks, the window is focused just like if the pointer is in the window (ie, computation goes "through" the panel) That version fixes that: http://www.xfce.org/~olivier/preview/xfwm4-4.2.CVS20050208.tar.gz Can you try it and see if that helps?
I'm new to xfce (its very nice!) and am using the 4.2.1 RPMs that are about to be incorporated into Fedora Extras. When switching between desktops using <ctl>-<alt>-<left|right>, the focus fequently fails to pick the correct window -- despite that window being immediately below the cursor. Moving the cursor out-of and then back-into the window does produce the correct focus. But switching desktops clearly confuses whatever code(s) are handling the focus.
(In reply to comment #6) > When switching between desktops using <ctl>-<alt>-<left|right>, the focus > fequently fails to pick the correct window -- despite that window being > immediately below the cursor. Moving the cursor out-of and then back-into the > window does produce the correct focus. But switching desktops clearly confuses > whatever code(s) are handling the focus. I can't reproduce the problem you describe, and I don't think it's related to this original bug. Could you open another separate bug report and give a bit more information there (what focus model, what applications are rinning, how do I reproduce the problem, etc.) TIA Olivier.
No news for more than 6 month, closing.