Comment 5 for bug 361679

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 361679] Re: Docky locks up on 'About Do'

 affects ubuntu/gnome-do
 status confirmed
 importance high
 affects do
 status confirmed
 importance high

Oooh. I can almost reproduce this.

So, I think what's happening is this: Do takes out pointer and keyboard
grabs when summoned so that (a) all keyboard input goes to Do, and (b)
clicking the mouse outside the Do window closes Do. It seems we also
take out such a grab when showing the context menus, for similar
reasons. This is all well and good - normally the worst that can happen
is that the first click you make unsummons Do, which releases the grab.

However... the About (and Preferences) windows block the main Do
interface for reasons which I'm sure were good reasons but I forget.
So: the context-menu pops up, taking a pointer grab. If you click
"Preferences", the menu is dismissed, the grab released, and _then_ the
preferences window is shown (which now blocks the main UI). If you
click "About Do", however, the About window is shown *before* the
context menu is dismissed and the pointer grab is dropped. So all mouse
clicks go to Do, but the interface is blocked while the window is shown,
so mouse clicks now *don't* release the grab.

I think that's the case, and if so, the fix should be a simple matter of
dismissing the context menu & grab before showing the About box.