focus stealing prevention in xfdesktop

Brian J. Tarricone bjt23 at cornell.edu
Fri Feb 24 07:56:04 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Olivier Fourdan wrote:
> Brian J. Tarricone wrote:
> 
>> I think I'm just confused.  *Where* does this function get called?  In
>> the app that initiates the button click, or the app that pops up a new
>> window?
> 
> In the app that maps the window.

Ok, I see.  It just seems a bit weird to me.  The gdk docs say:

"The application can use this call to update the _NET_WM_USER_TIME
property on a toplevel window. This property stores an Xserver time
which represents the time of the last user input event received for this
window. This property may be used by the window manager to alter the
focus, stacking, and/or placement behavior of windows when they are
mapped depending on whether the new window was created by a user action
or is a 'pop-up' window activated by a timer or some other event."

- From that, at least the "represents the time of the last user input
event received for this window", I get the opposite impression.  How can
a window that's just being mapped have received any user input?  Or is
it that setting _NET_WM_USER_TIME on a newly-mapped window acts to
"fake" the WM into thinking there's interaction there (when there hasn't
been) and it should be focused?

Ugh.  So confused.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD/q4E6XyW6VEeAnsRAr2mAJwOgNeYlQCOPhVikgWfezAMwoQQfACgvIWK
4XnvjJd0/5N4poyxpUUufEY=
=XLJq
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list