修复检测其他窗口管理器失效 bug
This commit is contained in:
@@ -39,7 +39,7 @@ bool has_other_wm_running(void) {
|
||||
XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY,
|
||||
};
|
||||
xcb_void_cookie_t cookie =
|
||||
xcb_aux_change_window_attributes(conn, screen->root, mask, ¶ms);
|
||||
xcb_aux_change_window_attributes_checked(conn, screen->root, mask, ¶ms);
|
||||
xcb_generic_error_t *error = xcb_request_check(conn, cookie);
|
||||
if (error) {
|
||||
xcb_disconnect(conn);
|
||||
|
||||
Reference in New Issue
Block a user