! 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 !
Windows loose focus if we switch to an empty workspace
Status:
CLOSED: FIXED

Comments

Description Jean-François Wauthy editbugs 2006-11-23 09:34:27 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061025 Firefox/2.0
Build Identifier: 

When I switch to an empty workspace, windows loose focus in other workspaces

Reproducible: Always

Steps to Reproduce:
1. open one window in a workspace, make sure it has focus
2. switch to an empty workspace
3. switch back to the previous workspace, the window lost focus
Comment 1 Olivier Fourdan editbugs 2006-11-23 15:03:19 CET
I cannot reproduce that issue.

Can you post the result of "xfwm4 --version", xlsclients and give some hints on the focus model you use?
Comment 2 Jean-François Wauthy editbugs 2006-11-23 16:36:33 CET
jf@fawkes ~ $ xfwm4 --version
DBG[main.c:536] main(): xfwm4 starting
        This is xfwm4 version 4.3.99.2 (revision 23940) for Xfce 4.3.99.2
        Released under the terms of the GNU General Public License.
        Compiled against GTK+-2.10.6, using GTK+-2.10.6.

        Build configuration and supported features:
        - Startup notification support:                 Yes
        - XSync support:                                Yes
        - Render support:                               Yes
        - Xrandr support:                               Yes
        - Embedded compositor:                          Yes
        - KDE systray proxy (deprecated):               No

jf@fawkes ~ $ xlsclients 
fawkes  xterm -bg black -fg white
fawkes  xfce4-session
fawkes  xfce-mcs-manager
fawkes  xfdesktop
fawkes  xfce4-panel
fawkes  gkrellm2
fawkes  xfce4-weather-plugin
fawkes  Terminal
fawkes  firefox-bin
fawkes  evolution-2.8
fawkes  evolution-alarm-notify
fawkes  gaim
fawkes  thunar
fawkes  xfwm4

i'm using 'click to focus' focus model, new window get focus and raise on click
Comment 3 Jean-François Wauthy editbugs 2006-11-23 16:37:08 CET
and i'm using latest svn (rev 23940)
Comment 4 Olivier Fourdan editbugs 2006-11-23 17:09:51 CET
Ok, my guess is that the focus is sent to a window that is sticky (only one, beside the desktop, eligible for focus if no other window is present). One the sticky window is focused, it remains focuses since it's present on all workspaces, ie focus is not lost, just sent to a window that you don't see it's focused.

GKrellm is usually sticky and undecorated, so it sounds like a good candidate. Is gkrellm sticky?
Comment 5 Jean-François Wauthy editbugs 2006-11-23 17:46:33 CET
yes it is
Comment 6 Olivier Fourdan editbugs 2006-11-23 19:00:31 CET
Then, can you kill gkrellm and see if the problem remains?
Comment 7 Jean-François Wauthy editbugs 2006-11-23 20:42:57 CET
no it's gone when i kill gkrellm
Comment 8 Olivier Fourdan editbugs 2006-11-23 20:44:50 CET
Well, so I see no bug there. It's all normal.
Comment 9 Jean-François Wauthy editbugs 2006-11-23 20:54:33 CET
i understand the logic but why didn't xfwm4 behave like that before ?
Comment 10 Jean-François Wauthy editbugs 2006-11-23 20:56:16 CET
and may be you could skip undecorated windows when restoring focus on the new workspace
Comment 11 Olivier Fourdan editbugs 2006-11-23 20:59:54 CET
(In reply to comment #10)
> and may be you could skip undecorated windows when restoring focus on the new
> workspace

Humm, ugly hack. You'll always have ppl with undecorated terminals that will complain that their terminal looses focus on ws switch.


But as far I can tell, xfwm4 has always behaved like that. I *think* you can tell gkrellm to identify itself as a dock, which *should* prevent that behavior.


Comment 12 Jean-François Wauthy editbugs 2006-11-23 21:07:49 CET
(In reply to comment #11)

> 
> But as far I can tell, xfwm4 has always behaved like that.
actually i had to update my local version to reproduce it (i found out the bug at work)

> I *think* you can tell gkrellm to identify itself as a dock, which *should* 
> prevent that behavior.
> 

I can but i don't want it to show on top and reserve some space on the workspace

Comment 13 Olivier Fourdan editbugs 2006-11-23 21:14:19 CET
(In reply to comment #12)

> > But as far I can tell, xfwm4 has always behaved like that.
> actually i had to update my local version to reproduce it (i found out the bug
> at work)

I see no bug there.

> > I *think* you can tell gkrellm to identify itself as a dock, which *should* 
> > prevent that behavior.
> > 
> 
> I can but i don't want it to show on top and reserve some space on the
> workspace

I'm not sure how to fix what doesn't seem to be broken.

Comment 14 Jean-François Wauthy editbugs 2006-11-23 21:23:06 CET
> I'm not sure how to fix what doesn't seem to be broken.
> 

Bah I can live with that :) (but i'm pretty sure this one will be marked duplicated in the future ;))
Comment 15 Olivier Fourdan editbugs 2006-11-23 21:28:33 CET
Well, it has not changed, so I don't see anything new here. BTW, I've changed the behavior so that it doesn't restore focus for windows that have the skip pager/taskbar property - gkrellm has this option.
Comment 16 Jean-François Wauthy editbugs 2006-11-23 21:38:51 CET
(In reply to comment #15)
> BTW, I've changed
> the behavior so that it doesn't restore focus for windows that have the skip
> pager/taskbar property - gkrellm has this option.
> 

oh, thanks that'll do definitely it
Comment 17 Olivier Fourdan editbugs 2006-11-23 22:15:13 CET
Closing.

Bug #2603

Reported by:
Jean-François Wauthy
Reported on: 2006-11-23
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Additional information