ELOG("X11 Error received! sequence 0x%x, error_code = %d\n",
error->sequence, error->error_code);
}
+ free(event);
continue;
}
/* Set a cursor for the root window (otherwise the root window will show no
cursor until the first client is launched). */
if (xcursor_supported) {
- uint32_t values[1] = { xcursor_get_cursor(XCURSOR_CURSOR_POINTER) };
- xcb_change_window_attributes(conn, root, XCB_CW_CURSOR, values);
+ xcursor_set_root_cursor();
} else {
xcb_cursor_t cursor_id = xcb_generate_id(conn);
i3Font cursor_font = load_font("cursor", false);
#include "atoms.xmacro"
#undef xmacro
};
- xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_SUPPORTED, A_ATOM, 32, 15, supported_atoms);
+ xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_SUPPORTED, A_ATOM, 32, 16, supported_atoms);
/* Set up the window manager’s name */
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_SUPPORTING_WM_CHECK, A_WINDOW, 32, 1, &root);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_WM_NAME, A_UTF8_STRING, 8, strlen("i3"), "i3");