! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
When changing desktop focus automatically if only one window is there
Status:
RESOLVED: FIXED

Comments

Description Oblio 2006-09-11 19:29:18 CEST
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.
Comment 1 Olivier Fourdan editbugs 2006-09-11 19:32:50 CEST
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?
Comment 2 Olivier Fourdan editbugs 2006-09-11 20:36:45 CEST
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.
Comment 3 Olivier Fourdan editbugs 2006-09-11 20:48:41 CEST
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.
Comment 4 Olivier Fourdan editbugs 2006-09-11 21:05:17 CEST
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.
Comment 5 Oblio 2006-09-12 06:59:29 CEST
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.
Comment 6 Oblio 2006-09-12 07:02:12 CEST
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.
Comment 7 Oblio 2006-09-12 07:05:14 CEST
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.
Comment 8 Olivier Fourdan editbugs 2006-09-12 07:29:51 CEST
(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.

Comment 9 Olivier Fourdan editbugs 2006-09-27 19:42:51 CEST
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.

Bug #2301

Reported by:
Oblio
Reported on: 2006-09-11
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information