XConf X = {0};
Client* Clients = NULL;
Cursor Move_Cursor;
+Cursor Main_Cursor;
int StartY = 0;
Column* Columns = NULL;
#pragma GCC diagnostic pop
int main(void) {
+ /* initialize basic x11 handling */
x11_init(&X);
X.font = x11_font_load(&X, Fonts[0]);
XSelectInput(X.display, X.root, SubstructureRedirectMask|SubstructureNotifyMask);
if (x11_error_get())
die("Could not start. Is another WM running?\n");
+ /* setup cursors */
+ Main_Cursor = XCreateFontCursor(X.display, XC_left_ptr);
Move_Cursor = XCreateFontCursor(X.display, XC_draped_box);
+ XDefineCursor(X.display, X.root, Main_Cursor);
+
+ /* register e vent handlers */
X.eventfns[ButtonPress] = xbtnpress;
X.eventfns[ButtonRelease] = xbtnrelease;
X.eventfns[ConfigureRequest] = xconfigrequest;