Re: A question about GdkEventMask



On Thu, 2005-09-29 at 17:18 +0800, Wang, Yong Y wrote:
> Hi,
> 
> I have some questions about GdkEventMask. To be more specific,
> GDK_PROXIMITY_IN_MASK and GDK_PROXIMITY_OUT_MASK.
> 
> After I set the event mask of a window using the following function 
> gdk_window_set_events (window, GDK_PROXIMITY_IN_MASK |
> GDK_PROXIMITY_OUT_MASK); 
> I cannot get the same event masks back using gdk_window_get_events
> (window).
> 
> From the gdk souce code, I saw that the corresponding entries for
> these two masks in _gdk_event_mask_table[] (in gdkwindow-x11.c) are
> both 0.
> 
> It seems that both GDK_PROXIMITY_IN_MASK and GDK_PROXIMITY_OUT_MASK
> are ignored. 
> If so, shall the documentation add some notes about this issue?

On current platforms, you only receive these events when you enable
XInput events for a window. See gdk_input_set_extension_events().

Regards,
					Owen





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