Re: Mouse position with key event



Jon Cook <cookj cs man ac uk> writes:

> Hi,
> 
> Unlike its X equivalent, the GdkEventKey data structure does not
> contain the position of the mouse when the key press/release event
> occurred. Is there any way of getting this information.

Not really, sorry. You can use gdk_window_add_filter() to get
direct access to the X event.

Alternatively, you can use gdk_window_get_pointer() when you receive
the event and assume that is close enough.

Regards,
                                        Owen




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