diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/vulkaninfo.c | 2 |
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) { |