#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "app.h"
+#include "vk.h"
static Window create_window(const char *title, int xsz, int ysz);
static void handle_event(XEvent *ev);
if(!(win = create_window("vkray", 1280, 800))) {
return 1;
}
+ vk_init_xwin(dpy, win);
+
+ if(app_init() == -1) {
+ goto end;
+ }
for(;;) {
while(XPending(dpy)) {
}
end:
+ app_cleanup();
XDestroyWindow(dpy, win);
XCloseDisplay(dpy);
return 0;