focus stealing prevention in xfdesktop

Brian J. Tarricone bjt23 at
Fri Feb 24 08:29:32 CET 2006

Hash: SHA1

Brian J. Tarricone wrote:
> 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.

This doesn't seem to be helping.  FYI, I'm using the backdrop settings
dialog as a test, starting it from the right-click desktop menu.  I
tried two things:

1) Call gdk_x11_window_set_user_time() right after calling
gtk_widget_show() on the backdrop settings dialog.

2) Connect to the backdrop settings dialog's map-event signal, and call
gdk_x11_window_set_user_time() in there.

With either one, I get the same annoying focus problem.  I figured out
how to reproduce it 100% of the time.

1) Have two windows open on the desktop.  In my case, I have a
Thunderbird and Firefox window, but it shouldn't matter what they are.

2) Change the focus to the other window.

3) Right-click on the desktop, and select Settings->Desktop Settings

4) Dialog will appear behind the focused window, and will not get focused.

5) Close the settings window and repeat from #2.

For me, this is reproducible 100% of the time.  Am I using
gdk_x11_window_set_user_time() incorrectly?  Or is something else going
on here?


Version: GnuPG v1.4.2 (GNU/Linux)


More information about the Xfce4-dev mailing list