Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!mit-eddie!mit-amt!hkbirke From: hkbirke@mit-amt (Hal Birkeland) Newsgroups: comp.windows.x Subject: XSendEvent, how do I use it... Keywords: Status = 0, never succeeds Message-ID: <3111@mit-amt> Date: 8 Oct 88 00:17:10 GMT Distribution: na Organization: MIT Media Lab, Cambridge, MA Lines: 32 Release: X11R2 System: 4.3 BSD UVaxII with Parallax running Xplx (ucode 7.xx) Routine: XSendEvent how do I use it... the following syntax seems to never succeed (status returned as zero and event never is generated.) XEvent ev; ev.type = Expose; ev.xexpose.display = dpy; ev.xexpose.window = window; ev.xexpose.x = 0; ev.xexpose.y = 0; ev.xexpose.width = 30; ev.xexpose.height = 30; ev.xexpose,count = 0; XSendEvent (dpy, window, False, ExposureMask, &ev); returns a 0 -- call fails. One other question -- is there a need for this much code duplication? I mean, I pass the display and window to the command as well as in the structure. Please correct my stupidity... it must be something obvious. -- hal hkbirke@media-lab.media.mit.edu ...!mit-amt!hkbirke THESE ARE MY OWN OPINIONS, USUALLY NOT THOSE OF MY SUPERIORS.