cookie = xcb_configure_window_checked(con, client_win, mask, values); error =xcb_request_check(con, cookie);if(error) {std::cerr<<"Could not change client attributes."<<std::endl;exit(1); }// reparent clientcookie = xcb_reparent_window_checked(con, client_win, win,0,0); error ...
xcb_change_window_attributes(conn, window, XCB_CW_EVENT_MASK, values);xcb_void_cookie_trcookie = xcb_reparent_window_checked(conn, window, nc->frame,0,0);if(xcb_request_check(conn, rcookie) !=NULL) { LOG("Could not reparent the window, aborting\n");gotogeom_out; } values[0] =...
xcb_aux_configure_window(xcb_connection_t*c, xcb_window_twindow, uint16_tmask, constxcb_params_configure_window_t*params); typedefstruct{ uint32_tfunction; uint32_tplane_mask; uint32_tforeground; uint32_tbackground; uint32_tline_width; ...
xcb_void_cookie_t xcb_create_window (xcb_connection_t *c, /* Pointer to the xcb_connection_t structure */ uint8_t depth, /* Depth of the screen */ xcb_window_t wid, /* Id of the window */ xcb_window_t parent, /* Id of an existing window that should be the parent of the ...
(argc, argv); // 初始化XCB连接(通常Qt会自动处理,此处仅为示例) xcb_connection_t *conn = xcb_connect(NULL, NULL); if (xcb_connection_has_error(conn)) { // 处理连接错误 return -1; } QWidget window; window.resize(250, 150); window.setWindowTitle("Qt XCB 示例"); window.show(); ...
xcb_clear_area_checked xcb_client_message_data_next xcb_close_font xcb_close_font_checked xcb_coloritem_next xcb_colormap_next xcb_configure_window xcb_configure_window_aux xcb_configure_window_aux_checked xcb_configure_window_checked xcb_configure_window_value_list xcb_configure_window_value_list...
xcb_configure_window(conn, win, mask, last_resolution); xcb_flush(conn); xinerama_query_screens(); redraw_screen(); } 开发者ID:seirl,项目名称:i3lock,代码行数:33,代码来源:i3lock.c 示例4: EmOpen ▲点赞 1▼ /** * Wrap an existing X11 window to embed the video. ...
m_shm_info.shmseg = xcb_generate_id(xcb_connection());xcb_generic_error_t*error = xcb_request_check(xcb_connection(), xcb_shm_attach_checked(xcb_connection(), m_shm_info.shmseg, m_shm_info.shmid,false));if(error) { qWarning() <<"QXcbWindowSurface: Unable to attach to shared memor...
示例1: window_set_visibility ▲点赞 7▼ voidwindow_set_visibility(xcb_window_twin,boolvisible){uint32_tvalues_off[] = {ROOT_EVENT_MASK & ~XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY};uint32_tvalues_on[] = {ROOT_EVENT_MASK};xcb_change_window_attributes(dpy, root, XCB_CW_EVENT_MASK, values_off...
xcb_configure_window(conn, w, mask, val); xcb_warp_pointer(conn, XCB_NONE, w,0,0,0,0, r->width + x, r->height + y);free(r); } 开发者ID:adbjesus,项目名称:wmutils-core,代码行数:35,代码来源:wrs.c 示例3: swrastGetDrawableInfo ...