gtk_event_put() and foreign GDK windows



I have a GdkWindow which I created with gdk_window_foreign_new(),
wrapping a GdkWindow around an nedit X window.  I'm able to select for
and handle GDK events on it just fine.

However, when I want to send a synthetic key press event, for example,
to nedit using gdk_event_put() and specifying its GdkWindow, the nedit
application itself doesn't seem to see the key press (i.e., no new
character appears in the edit window).  Interestingly, though, the event
is successfully placed in the GDK event queue and my application can see
it fine.

So it seems as if gdk_event_put() when used on a foreign GDK window will
place the event in my local application's gdk event queue but will not
send an actual X event to the foreign X window.  I'm able to get Nedit
to see a key press only by sending an XEvent myself at the Xlib level. 
Is this the intended behavior of gdk_event_put()?





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