When changing desktop, Xfwm does not automatically focus a window on the remote desktop. If I open Mrxvt (for example) on the second desktop, then I go to the first one, and then come back again to the second one, Mrxvt should be focused automatically. It's a natural choice: 99% of the time, if I go to a certain desktop, I want to see a certain window on that desktop. And if there's only one window there, there's a 99% chance that I'll want to see that window, and have it focused already.
I'm not seeing that here. 1) go to workspace #2 open a terminal, get back to workspace #1 and back to workspace #2, then the terminal gets rightly focused. What focus model do you use?
Note that if you click onto the desktop, then the desktop windows gets the focus. It'snew in 4.4, the desktop now accept focus... And since it's sticky (ie visible on all workspaces), the focus remains. Dunno if that's what you are talking about.
Ah, you mean inside the terminal? mrxvt doesn't show a "full square cursor", but it has focus. Just type and you'll see. Dunno why mrxvt doesn't show the focused cursor until some texts is entered though.
Can you please clarify your bug? Because from what I see, everything works as expected but "mrxvt" that doesn't update it's cursor when it gets focused (in which case I would close that bug as invalid). Thanks Olivier.
The desktop takes focus, you were right (that's why switching back and forth lost focus: I somehow clicked on the desktop - I think). That's kind of odd, can I disable it somehow? Another problem is when starting up: I have unfocused windows on certain desktops. So if I start up Xfce, and move to the third desktop, where Mxrvt (or any other program, even Terminal) is present - by means of starting via session saver), is isn't focused. Is the desktop focused by default? It's annoying, better focus a window.
To make it more clear: - if no window on desktop - focus desktop (1) - else - if one window on desktop - focus that window (2) - else - focus latest focused window - or something similar (3) (1) and (2) should be standard, they are very natural in terms of behaviour. (3) is debatable, I know.
Oh, and I use: Click to focus, Automatically give focus to newly created windows is checked, Activate focus stealing protection is checked, Honor the standard ICCCM focus hint is checked.
(In reply to comment #6) > To make it more clear: > - if no window on desktop - focus desktop (1) > - else - if one window on desktop - focus that window (2) > - else - focus latest focused window - or something similar (3) > > (1) and (2) should be standard, they are very natural in terms of behaviour. > (3) is debatable, I know. Ok, the problem with windows restored on a different desktop not being focused is fixed with rev. 23128. For the rest, it's already the case.
Things have improved regarding focus of a single window mapped directly on a separate desktop. There is a problem with Mxrvt that doesn't show the window focused while it is, but that an Mrxvt issue. Closing bug.