aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-28 00:16:15 +0200
committerDavid Robillard <d@drobilla.net>2014-12-16 16:27:04 -0500
commitc136194b24c013977e95d53c62d712e721d21661 (patch)
tree933a41d5b0775fc3576fb167a2cf62e0cbea1991 /pugl/pugl_x11.c
parentd90fd25f149058a518acc088d4d72fffdacf40a0 (diff)
downloadpugl-c136194b24c013977e95d53c62d712e721d21661.tar.gz
pugl-c136194b24c013977e95d53c62d712e721d21661.tar.bz2
pugl-c136194b24c013977e95d53c62d712e721d21661.zip
Never redisplay after close.
Conflicts: pugl/pugl_x11.c
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 838980b..e0852be 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -250,6 +250,7 @@ puglDestroy(PuglView* view)
XCloseDisplay(view->impl->display);
free(view->impl);
free(view);
+ view = NULL;
}
static PuglKey
@@ -438,6 +439,7 @@ puglProcessEvents(PuglView* view)
xevent.xclient.message_type);
if (!strcmp(type, "WM_PROTOCOLS") && view->closeFunc) {
view->closeFunc(view);
+ view->redisplay = false;
}
XFree(type);
continue;