No focus in gksudo when a menu is open

Bug #20665 reported by frooze
18
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Hi,

I'm in ubuntu breezy.

If I open synaptic, for exemple and if I open a menu (from gnome, firefox, ...)
after then new gray screen, there are not focus in dialoge box and it's
impossible to put password.

The interface is blocked and I should kill the process or put the sentence Esc +
Enter.

Sorry for my very bas english

Revision history for this message
Aurelien Naldi (aurelien.naldi) wrote :

I was about to report the same one.
these focus stealing bugs with menu are quite annoying, and gksudo locking the
screen (which is VERY nice) might sometimes be very bad :/
is it any way to detect it and to close the menu before locking ?
hoary seems unaffected by this problem :)

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I can reproduce the problem here. I have tried various ways to make sure that
the entries still gets the focus even with a open menu:
          gtk_window_present(GTK_WINDOW(dialog));
          gdk_x11_window_set_user_time (dialog->window,
                                        gtk_get_current_event_time());
          gdk_window_focus(dialog->window,gtk_get_current_event_time());
          gtk_widget_grab_focus(((GksuuiDialog*)(dialog))->entry);

without success so far.

Revision history for this message
Michael Vogt (mvo) wrote :

It also does not depend on the window manager (xfwm4, blackbox, kwin and
metacity show the same behaviour).

Revision history for this message
Michael Vogt (mvo) wrote :

*** Bug 21231 has been marked as a duplicate of this bug. ***

Revision history for this message
Michael Vogt (mvo) wrote :

This problem is fixed with the upload of gksu_1.3.0-1ubuntu8. Please reopen if
the fix does not work for you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.