lumina-desktop / lumina

Lumina Desktop Environment
http://lumina-desktop.org
BSD 3-Clause "New" or "Revised" License
533 stars 116 forks source link

xcb_damage_create does not work. #830

Closed twaik closed 1 year ago

twaik commented 1 year ago

Hi. I found out how to fix this.

You should query damage version and then sync with xcb_request_check. Like this.

xcb_connection_t* conn = xcb_connect(nullptr,nullptr);
xcb_drawable_t root = xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root;
xcb_damage_query_version(conn, 1, 1);
xcb_request_check(conn, xcb_damage_create(conn, xcb_generate_id(conn), root, XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES));
twaik commented 1 year ago

Stale issue.