Cannot click buttons on "End Session" dialog

Jani Monoses jani.monoses at gmail.com
Thu Apr 13 16:07:47 CEST 2006


Benedikt Meurer wrote:
> Adriano Winter Bess 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.
> 
>> Adriano
> 
> Benedikt

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)




More information about the Xfce4-dev mailing list