summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorRene Lindsay <rene@lunarg.com>2016-06-21 12:16:44 -0700
committerRene Lindsay <rene@lunarg.com>2016-06-21 12:16:44 -0700
commit0e4da2835acd07fc32507edd5f451e367f930c96 (patch)
treed7027d9391ff25b5999ddd12ce9844afc449f2ed /demos
parente52949e89ac67e3ed2d19fa4fcbce5131c901f29 (diff)
demos: Fix intermittent crash on xlib
Diffstat (limited to 'demos')
-rw-r--r--demos/vulkaninfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c
index 866756a0..7121163e 100644
--- a/demos/vulkaninfo.c
+++ b/demos/vulkaninfo.c
@@ -133,6 +133,7 @@ struct app_instance {
#ifdef VK_USE_PLATFORM_XLIB_KHR
Display *xlib_display;
Window xlib_window;
+ Atom xlib_wm_delete_window;
#endif
#ifdef VK_USE_PLATFORM_ANDROID_KHR // TODO
@@ -949,6 +950,7 @@ static void app_create_xlib_window(struct app_instance *inst) {
visualInfo->visual, 0, NULL);
XFlush(inst->xlib_display);
+ inst->xlib_wm_delete_window = XInternAtom(inst->xlib_display, "WM_DELETE_WINDOW", False);
}
static void app_create_xlib_surface(struct app_instance *inst, struct app_gpu *gpu) {