Re: Help with popup/popdown with pointer grab.



<Dave 0Bits COM> writes:
>       /* Popup window and grab pointer */
>       gdk_window_show(window->window);
>       gdk_window_raise(window->window);
>       if (gdk_pointer_grab (window->window,
> 			FALSE, GDK_POINTER_MOTION_MASK,
> 			window->window, NULL, GDK_CURRENT_TIME)==0)
> 	printf("grab succeeded\n");
>       else

This is a race condition. The window manager gets a request to
deiconify, and then will map your window. However, the window is
probably still unmapped when you do the grab. Remember that X is
asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then
this is almost certainly the problem.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]