Bug 186587

Summary: metacity "forgets" that it is using point-to-focus
Product: [Fedora] Fedora Reporter: Sean E. Millichamp <sean>
Component: metacityAssignee: Søren Sandmann Pedersen <sandmann>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: akrherz, cmrhbug, djschaap, kem, loening, wcooley
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-06 19:42:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sean E. Millichamp 2006-03-24 16:05:26 UTC
Description of problem:

In the "Window Preferences" program I have selected "Select windows when the
mouse moves over them".

This works (for a while) but every day for the last 5 days at some point not too
far into the workday it reverts back to click-to-focus.  Needless to say, for
someone who has become very used to using point-to-focus every day for the last
5+ years it can really end up confusing (and dangerous!  I almost typed a root
password in an IM window because I was expecting focus to follow the mouse)

I have not yet determined what program or behavior (if any) trigges the
reversion from point-to-focus to click-to-focus.  If I return to the Window
Preferences program, deselect "Select windows when the mouse moves over them",
click Close, then return to Windows Preferences and re-select "Select windows
when the mouse moves over them" it still persists in using click-to-focus.

If I log out and log back in then it will return to point-to-focus until it
triggers again and I am back to click-to-focus.

Version-Release number of selected component (if applicable):
metacity-2.14.0-1

How reproducible:
It has happened every login session for me so far, so it is consistently
recurring, but I haven't yet figured out what it is that triggers it.

Steps to Reproduce:
1. Select point-to-focus behavior
2. Use the desktop like normal.  Programs I have used before seeing this
behavior are: gnome-terminal, Firefox, Evolution.  Applets I have loaded (in
addition to the out-of-the-box default configuration): Tomboy Notes, Rhythmbox
Applet, the Weather Applet, Rhythmbox, and Gaim.

I don't know if the loaded program set impacts this behavior or not.  If I
narrow it down any, I will post an update to this bug.

This system is a fresh install of FC5 and I cleared all of the dotfiles from my
home directory before logging in, so all of my Gnome desktop/user settings were
created from scratch from the FC5 defaults.  I then made one or two adjustments,
 including in the Window Preferences control.

Comment 1 Sean E. Millichamp 2006-03-24 17:38:44 UTC
Okay... I just noticed an odd aspect of this.

If I move the mouse from a focused window to a new window the focus still does
not change (as indicated by the title bar color) but the mouse scrollwheel will
scroll the window that the mouse is now pointing to.

However, if I type the characters are sent to the first window (which still has
the focus according to the title bar coloring).

Weird.


Comment 2 Sean E. Millichamp 2006-03-28 17:56:00 UTC
Okay... I have noticed some new behavior related to this...

One of the other preferences I changed was the window Movement Key from Alt to
Super.  I have used Super for moving windows for a long time.

Friday, the Super key stopped working to allow me to move windows.  Any attempt
to move windows with the Super key pressed down behaved exactly as if I wasn't
holding Super down.  I tried logging out and back in a number of times but I
could not get it working again.  So, I switched back to having it use Alt, the
default.

Alt was working just fine and I noticed that while Alt was selected for that
function then I did not experience the window focus problem I originally reported.

This morning it occurred to me that I should see if the Super key would begin
working after a reboot.  I rebooted the system, reselected Super and I could use
it to move windows again!  At this moment the Super key is still allowing me to
move windows but I have experienced the window focus problem again.

I don't know what relation the window movement key selection might have to
point-to-focus but at this point it seems like there might be one.


Comment 3 Wil Cooley 2006-03-31 20:02:41 UTC
I, too, am seeing this; same versions.

One work-around that's easier than logging out (but not pretty nonetheless) is
to just kill Metacity, which causes gnome-session to restart it.

Comment 4 Sean E. Millichamp 2006-03-31 20:18:52 UTC
I encountered the point-to-focus failure with the Alt window movement key
selected.  It now appears that it may be entirely unrelated to the movement key
selection.

I'm glad I'm not the only one seeing this.  Wil, I will try killing metacity. 
Thanks.

Comment 5 Andy Loening 2006-04-02 00:47:59 UTC
I'm seeing this on x86_64 as well.  Metacity version 2.14.0-1


Comment 6 daryl herzmann 2006-04-03 15:25:20 UTC
Hi,

I am seeing this as well.  Very annoying!  The trigger for me, is to launch k3b.
 Then focus follows mouse no longer works.  Thanks for the kill metacity idea!

daryl

Comment 7 James 2006-04-04 17:39:36 UTC
Yup, seen here.

Comment 8 Chuck Moss 2006-04-10 03:39:09 UTC
Seeing the same problem.  Has caused data loss due to typing commands in wrong
window.  Between this problem, the new strict-focus-approximation "feature" and
the long standing debate re:  mouse/sloppy focus mode I am about convinced to go
to KDE.  Everytime I upgrade or apply rpm updates I have to fight for hours to
get metacity usable on any RedHat based distro.

Comment 9 daryl herzmann 2006-04-19 21:42:01 UTC
Howdy...

My reproducer machine updated to metacity-2.14.3-1.fc5.1 and I have yet to see
the problem again.  Hopefully it was fixed for good! :)

daryl

Comment 10 Chuck Moss 2006-04-28 15:30:37 UTC
(In reply to comment #8)
> Seeing the same problem.  Has caused data loss due to typing commands in wrong
> window.  Between this problem, the new strict-focus-approximation "feature" and
> the long standing debate re:  mouse/sloppy focus mode I am about convinced to go
> to KDE.  Everytime I upgrade or apply rpm updates I have to fight for hours to
> get metacity usable on any RedHat based distro.

Discovered the problem was reproducible.  When running kde-pim/korganizer a
pop-up reminder would break metacity point to focus until metacity was restarted.  

Since recent update everything has been fine.  

Great work.  Also found that metacity is now built with the feature to stop
"raise on click", accessible with gconf-editor.  Metacity frustrations are all
gone with the latest release build.

thx



Comment 11 Sean E. Millichamp 2006-04-28 15:37:12 UTC
I, too, have not seen any more focus problems with the recent metacity update. 
Thanks much!


Comment 12 djschaap 2006-04-30 18:02:21 UTC
I'm seeing this consistently with metacity-2.14.0-1.  Only Firefox and
gnome-terminal running.  Not sure if it's relevant, but this system was upgraded
to FC 5 (rather than a fresh install).  Attempting upgrade to
metacity-2.14.3-1.fc5.1.