Displaying 2 results from an estimated 2 matches for "devptrcontext".
2006 Nov 07
2
Crash when embedding R X11 windows
...=============================
--- devX11.c (revision 39818)
+++ devX11.c (working copy)
@@ -586,8 +586,8 @@
if (event.xany.type == Expose) {
while(XCheckTypedEvent(display, Expose, &event))
;
- XFindContext(display, event.xexpose.window,
- devPtrContext, &temp);
+ if (XFindContext(display, event.xexpose.window,
+ devPtrContext, &temp)) return;
dd = (NewDevDesc *) temp;
if (event.xexpose.count == 0)
do_update = 1;
@@ -595,8 +595,8 @@
else if (event.type == ConfigureNotify) {...
2001 Feb 13
1
X11 device doesn't handle destroy events correcly (PR#848)
...eight = event.xconfigure.height;
xd->resize = 1;
}
else if ((event.type == ClientMessage) &&
! (event.xclient.message_type == _XA_WM_PROTOCOLS))
! if (!inclose && event.xclient.data.l[0] == protocol) {
! XFindContext(display, event.xclient.window,
devPtrContext, &temp);
dd = (DevDesc *) temp;
! KillDevice(dd);
}
}
static void R_ProcessEvents(void *data)
--- 619,652 ----
xd->windowHeight = event.xconfigure.height;
xd->resize = 1;
}
+ else if (event.type == DestroyNotify) {
+ /* The window is being des...