Comment 20 for bug 603482

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Bug 603482] Re: Desktop freezes if new window takes focus while menu is open

On Fri, Feb 4, 2011 at 5:55 PM, Fred <email address hidden> wrote:
> This bug may get fixed, but there is still an underlaying issue here.
> How can one little application freeze the WHOLE desktop?
> Something is seriously wrong here.

XGrabPointer.

http://tronche.com/gui/x/xlib/input/XGrabPointer.html

It is fundamental to the design of X that if something needs to
collect pointer motion (like a menu) then it needs to stop other
things from doing so/

>
> --
> You received this bug notification because you are a member of Indicator
> Applet Developers, which is the registrant for Application Menu
> Indicator.
> https://bugs.launchpad.net/bugs/603482
>
> Title:
>  Desktop freezes if new window takes focus while menu is open
>
> Status in The Application Menu:
>  Confirmed
> Status in “indicator-appmenu” package in Ubuntu:
>  Triaged
>
> Bug description:
>  appmenu-gtk 0.1.1-0ubuntu1, indicator-appmenu 0.0.8-0ubuntu1
>  appmenu-gtk 0.1.7-0ubuntu1, indicator-appmenu 0.0.9-0ubuntu1, Ubuntu Maverick
>
>  1. Focus a window for which indicator-appmenu displays the window menus, e.g. Character Map or Calculator.
>  2. Start "Take Screenshot".
>  3. Choose "Grab the whole desktop" and "Grab after a delay of" 5 seconds, and choose "Take Screenshot".
>  4. Within 5 seconds, open any of the window menus for the previously-focused window, and wait for the remaining time to elapse.
>
>  What happens:
>  * A "Save Screenshot" window takes focus (with a thumbnail showing that Take Screenshot successfully snapped the open menu).
>  * The menu then goes blank, and the entire screen becomes unresponsive.
>
>  What should happen: As soon as the Save Screenshot window takes focus,
>  the menu you had open should automatically close, because it is no
>  longer a menu for the focused window.
>
>  To recover after testing:
>  5. Ctrl Alt F1.
>  6. At the console, enter "killall indicator-applet-appmenu". If your volume was up, you should hear a twang sound.
>  7. Alt F7.
>  8. In the error alert, choose "Reload".
>
>
>

--
Sam Spilsbury