If I choose an application in the middle-click menu of the desktop which is on another desktop, the desktop is focused but that application doesn't get the focus. Instead, the last-focused application gets the focus.
are you using the focus-follows-mouse focus model? if so, if the window isn't under the mouse when it switches workspaces, the new window won't get the focus. i use focus-on-click, and i haven't seen the problem you describe.
I use focus-on-click. Of course, if the window is on the same workspace, it works!
hmm, ok. do you have the "anti focus stealing" option enabled by chance? olivier thinks that might be causing it, if you do.
Where is this option?
window manager settings, i think. i'm not on my linux box now, so i can't check. olivier just mentioned it to me on IRC a bit ago.
Don't know what you mean, really.
neither do i, really. anyway, i'm seeing it too, but only sometimes. if i have firefox focused on desktop 1, and go to desktop 2, and then use the windowlist menu to select the gaim buddy list (on desktop 1), it pops back to desktop 1, raises the gaim buddy list for a second, and then firefox jumps back up to the top and gets focus. but, if i have a terminal focused on d1, switch to d2, then use the windowlist to select the gaim buddy list (on d1), then it works as expected. i wonder if firefox is doing something odd to avoid losing focus. olivier, any ideas?
Sure, when switching workspaces, the window manager set the focus back to the previous focused windnon on that particular workspace. It's clearly a race conditiuon between the menu and the WM, but it's fairly unavoidable (and pretty much harmless IMO)
I'll try to think about it a bit more though.
Just commited a patch to xfdesktop window list that might improve things.
Ok, fixed in CVS. You need to update xfwm4.
if olivier says it's fixed, i'm convinced. besides, i can't reproduce it anymore ^_~.