synthetic button press event in GTK1.2



I need to send a 'synthetic' button release event. Im under the
impression I can only do this with a call to Xlibs XSendEvent.

However Im not having much luck :(

My main problem seems to be translating GDK Xlib representations back
to actual Xlib ones; My XSendEvent looks something like;

         XSendEvent((Display*)GDK_DISPLAY(),
                     GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window)
                     ,False, ButtonReleaseMask, (XEvent *)&syn_event);

Does that look right ? Event better does anyone have an example of
accomplishing this actual feat with GTK ?

  -- mallum




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