diff options
Diffstat (limited to 'termgfx.cc')
-rw-r--r-- | termgfx.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,14 +1,13 @@ -# include <cstdint> # include <luma/main.hh> # include <vulkan/vulkan.h> # include <wayland-client.h> # include <xcb/xcb.h> void luma::termgfx() { ::vkDestroyInstance(luma::dat.vkinst,nullptr); - if constexpr(luma::usex == 0x1) { + if(luma::dat.dispsrvproto == luma::dispsrvproto_t::x) { ::xcb_disconnect(luma::dat.xconn); } - else { + else if(luma::dat.dispsrvproto == luma::dispsrvproto_t::wayland) { ::wl_display_disconnect(luma::dat.wldisp); } } |