Cannot click buttons on "End Session" dialog

Benedikt Meurer benny at xfce.org
Thu Apr 13 18:01:05 CEST 2006


Jani Monoses wrote:
>>>>Have you tried moving the pointer to another widget and back to the
>>>>button? That should do the trick.
>>>
>>>Yes, it works fine this way. But if I move the pointer without leaving the
>>>widget (the button), it doesn't work.
>>
>>Yep, that's a known problem with the pointer grab. I have to look at
>>this again one day.
> 
> This patch fixes it for me, but I admit I don't know why :)
> If I force the ATK codepath even if accessibility is not present, that 
> seems to work too. There's a comment in the code with problems on grab 
> but no further details, so it's this grab on a hidden window that seems 
> to cause it somehow.
> 
> Jani
> 
> Index: xfce4-session/shutdown.c
> ===================================================================
> --- xfce4-session/shutdown.c    (revision 20861)
> +++ xfce4-session/shutdown.c    (working copy)
> @@ -233,7 +233,7 @@
>       {
>         for (;;)
>           {
> -          if (gdk_pointer_grab (hidden->window, FALSE, 0, NULL, NULL,
> +          if (gdk_pointer_grab (hidden->window, TRUE, 0, NULL, NULL,
>                                   GDK_CURRENT_TIME) == GDK_GRAB_SUCCESS)
>               {
>                 if (gdk_keyboard_grab (hidden->window, FALSE, 
> GDK_CURRENT_TIME)

Please file a bug report for this, I'll look into this when I'm back at
home.

Benedikt

-- 
Xfce  --  small, stable, fast  --  http://www.xfce.org/

          (__)
          (oo)
    /------\/
   / |    ||
  *  /\---/\
     ~~   ~~
...."Have you mooed today?"...



More information about the Xfce4-dev mailing list