Displaying 2 results from an estimated 2 matches for "killdevice".
2001 Feb 13
1
X11 device doesn't handle destroy events correcly (PR#848)
...;s the nuisance part.
The second problem is that the device may try to plot() into a
non-existant window. Assume that the window was destroyed by some
other part of the program. The device (at some point in the future)
will receive a DestroyNotify event that handleEvent ignores.
Blissfully! *No KillDevice is called* when the window is destroyed by
something other than the WM_DELETE_WINDOW mechanism! This happens
when you embed the X11 device into another window/application. For
starters, the device no longer receives WM_DELETE_WINDOW client
messages. But it does receive a DestroyNotify event when...
2006 Nov 07
2
Crash when embedding R X11 windows
...a.l[0] == protocol) {
- XFindContext(display, event.xclient.window,
- devPtrContext, &temp);
+ if (XFindContext(display, event.xclient.window,
+ devPtrContext, &temp)) return;
dd = (NewDevDesc *) temp;
KillDevice((DevDesc*) GetDevice(devNumber((DevDesc*) dd)));
}
I'll have to admit, that I'm mostly clueless as far as X11-programming is
concerned, so the patch may not be entirely correct. It does fix the crash,
however, and should be along the right lines. The rationale is, that
apparentl...