summaryrefslogtreecommitdiff
path: root/termgfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'termgfx.cc')
-rw-r--r--termgfx.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/termgfx.cc b/termgfx.cc
index 1df3547..240c1b7 100644
--- a/termgfx.cc
+++ b/termgfx.cc
@@ -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);
}
}