[Xfce-bugs] [XFCE 0000291]: gaim 'raise on event' hint steals focus

xfce-bugs at xfce.org xfce-bugs at xfce.org
Sun Aug 15 23:24:16 CEST 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=291
=======================================================================
Reporter:                   marcelb
Handler:                    
=======================================================================
Project:                    XFCE
Bug ID:                     0000291
Category:                   xfwm
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
=======================================================================
Date Submitted:             2004-08-11 05:47 GMT
Last Modified:              2004-08-15 21:24 GMT
=======================================================================
Summary:                    gaim 'raise on event' hint steals focus
Description: 
When the Gaim option 'Raise On Events' is enabled, any such occurence
steals the focus from the current widget and puts it in the gaim input.
The desired behaviour is to have the window raised to the top pane but not
actually steal focus from the current application. This occurs since Gaim
0.81 (so it clearly stems from a code change of theirs) but I believe it
is the window manager's responsibility to control the focus appropriately.
Thus, either an option to specify the desired behavior or a default to
ignore focus requests in such a situation should be added.
=======================================================================

-----------------------------------------------------------------------
 olivier - 2004-08-15 21:04 GMT 
-----------------------------------------------------------------------
metacity works the same, I don't see any bug on our side here.

-----------------------------------------------------------------------
 marcelb - 2004-08-15 21:14 GMT 
-----------------------------------------------------------------------
i think the fact that any application can steal focus without any control
by the user could be considered undesired behavior. Either in Gaim or XFCE
this should be fixed/configurable, and since i'm sure gaim isn't the only
app that does this, xfce sounds like the better place.

-----------------------------------------------------------------------
 olivier - 2004-08-15 21:24 GMT 
-----------------------------------------------------------------------
yes and no. The WM cannot prevent an application from stealing focus (ie,
the ap called "XSetInputFocus" on one of its window, then no luck.)

The WM is resposible for focusing windows when new window appear, and
there is a mechanism that could prevent focus stealing in that case. But
that's not the case here, it's not a new window that is being created, so
I think gaim is setting focus itself (or even gtk might be doing it on its
behalf)

So in a nushell, if an app really wants to steal focus, there is not much
the WM can do (yeah, it could receive the focus event and revert it, but
that would be a real hack IMO)



More information about the Xfce-bugs mailing list