windows don't get focused when switching workspaces

Bug #95140 reported by Markus
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: desktop-effects

1. Enable desktop effects.
2. Open some windows.
3. Switch to another virtual desktop.
4. Switch back to the original virtual desktop.
5. No window is focused. Pressing ALT-Tab focuses the window below the window on the top.

ProblemType: Bug
Architecture: i386
Date: Fri Mar 23 18:32:52 2007
DistroRelease: Ubuntu 7.04
Uname: Linux fundstueck 2.6.20-12-386 #2 Wed Mar 21 20:53:13 UTC 2007 i686 GNU/Linux

Revision history for this message
Mika Wahlroos (mpw) wrote :

I also get this with current feisty.

After a little experimentation, it seems that when switching from a workspace that has a window focused to another one with windows, one of the windows on the target workspace gets focus. However, if the previous workspace has no windows, or none of them have focus, no window on the target workspace gets focus either.

This doesn't make sense, is inconsistent (why should the focusing of windows on the target workspace depend on the situation on the previously selected workspace?), and differs from the way Metacity behaves.

Revision history for this message
VF (vfiend) wrote :

Works okay with viewports ("workspaces on a cube")

Changed in compiz:
status: Unconfirmed → Confirmed
Revision history for this message
Loe Spee (lgespee) wrote :

Possibly related bug:
Opening a window with desktop-effects (compiz) enabled doesn't focus the window
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/102920

Revision history for this message
Javier Ruiz (jrhbcn) wrote :

Same problem here using ubuntu feisty and nvidia card. No solution found yet rather than going back to metacity :-(

Revision history for this message
Fırat Küçük (firatkucuk) wrote :

same problem on feisty and intel 915 card.

delete ~/.gconf/apps/compiz and try again

Revision history for this message
Javier Ruiz (jrhbcn) wrote :

For the record, I've deleted ~/.gconf/apps/compiz and the problem persists

Changed in compiz:
importance: Undecided → High
Revision history for this message
TiagoMacambira (macambira) wrote :

Same thing here w/ a clean install of Feisty + gnome-compiz-effects.

As an interesting side note: I use gkrellm here and its window is configured to appear with "stick state". If I shut gkrellm down, things start to behave as expected, i.e., after switching virtual desktops, previously focused windows regain focus.

Revision history for this message
Alexander Butenko (avb) wrote :

Comfirm this problem.
I solve this problem for me by setting /apps/compiz/general/screen0/options/focus_prevention_match to none from any.

Also this helped me with pidgin-hotkeys plugin. When focus preventing was blocking activation of showing buddy list.

Play with this option, i think by default it must be changed to something different then 'any'.

Revision history for this message
Travis Watkins (amaranth) wrote :

We use viewports now so I'm marking this as low priority.

Changed in compiz:
importance: High → Low
status: Confirmed → Triaged
Revision history for this message
Matt Zimmerman (mdz) wrote :

This bug affects viewports as well as workspaces, so I've reprioritized accordingly. To reproduce:

1. Focus window A on viewport 1
2. Switch to viewport 2
3. Focus window B on viewport 2
4. Switch back to viewport 1

window A should be focused again, but isn't.

Changed in compiz:
importance: Low → Medium
Revision history for this message
Markus (markus-schmaus) wrote :

This seems to work OK with gutsy, but one quirk remains.

1. Open window A on viewport 1 and window B on viewport 2.
2. Move to viewport 1.
3. Press Ctrl-Alt-Shift-Right to move window A to viewport 2.
4. -> Window A has the focus on viewport 2.
5. Move back to viewport 1 and leave window A on viewport 2 by pressing Ctrl-Alt-Left.
6. Move to viewport 2 by pressing Ctrl-Alt-Right.
7. -> Window A is above window B, but window B has the focus.

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 95140] Re: windows don't get focused when switching workspaces

On Fri, Aug 10, 2007 at 10:08:24AM -0000, Markus wrote:
> This seems to work OK with gutsy

Not for me, it doesn't. My original problem remains. Only one window across all
viewports can have the focus at a time, so one needs to change focus *every*
time when switching viewports. With workspaces, focus was retained when
switching away and back, which is much more natural and efficient.

> , but one quirk remains.

This sounds like a separate issue.

--
 - mdz

Revision history for this message
Forlong (forlong) wrote :

I can not confirm this on Gutsy.

When switching workspaces (viewports) the top window of the current always gets focused.

Revision history for this message
Travis Watkins (amaranth) wrote :

This should be fixed now.

Changed in compiz:
status: Triaged → Fix Released
Revision history for this message
jbrendel (juergen-brendel) wrote :

I am seeing exactly this problem on a brand new install of Ubuntu 9.10 (nvidia card, Dell D820 laptop). Has this really been fixed? I experimented with the raise prevention settings, but no luck. Is this a configurable parameter these days? If so, where can I fix this?

Revision history for this message
Julian Maibaum (cerbero626) wrote :

jbendel: If your windows loose focus after switching to an empty workspace and back, you can solve it by enabling the compiz "Window Rules" Plugin in the CompizConfig Manager and adding a "No Focus" rule of the form "type=Desktop | class=Cairo-dock".

Revision history for this message
Ravi (ra-ravi-rav-gmail) wrote :

I also face the same problem. The current work around is to set the focus prevention level in general settings to off.

Revision history for this message
Ravi (ra-ravi-rav-gmail) wrote :

The above work around doesn't always work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.