focus stealing prevention in xfdesktop
Brian J. Tarricone
bjt23 at cornell.edu
Thu Feb 23 18:06:23 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Olivier FOURDAN wrote:
> Hi Brian,
>
>> Is there something xfdesktop needs to be doing? I thought gtk was
>> supposed to set NET_WM_USER_TIME automatically.
>
> gtk updates the user time as much as it cans, but it cannot get the logic of the app all by itself :)
>
> To achieve what you want, you may use the following (which is perfectly standard):
>
> gdk_x11_window_set_user_time (GdkWindow, GDK_CURRENT_TIME);
>
> That will tell the WM that you mean to focus the window anyway even if focus prevention is enabled.
Ah, cool, thanks. Which GdkWindow should be set as the parameter here?
I assume xfdesktop's vroot window, since that's really the only
persistent window, but technically it's the menu shell window that
causes the event.
-brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD/euP6XyW6VEeAnsRAl79AJ0UlBSc0wMDx7s9estDAQwVP/5tHQCcDxpL
CuVAw/oUZK0Sxy6WrliLvVI=
=0SNZ
-----END PGP SIGNATURE-----
More information about the Xfce4-dev
mailing list