Lines Matching refs:conn
111 xcb_connection_t *conn;
133 xcb_connection_t *conn;
156 SendXMessage(xcb_connection_t *conn, xcb_window_t iWin, xcb_atom_t atmType, long nData);
174 CheckAnotherWindowManager(xcb_connection_t *conn, DWORD dwScreen);
386 xcb_connection_t *conn = pWMInfo->conn;
398 cookie = xcb_get_property(pWMInfo->conn, FALSE, iWin,
401 reply = xcb_get_property_reply(pWMInfo->conn, cookie, NULL);
415 cookie = xcb_icccm_get_wm_name(conn, iWin);
416 if (!xcb_icccm_get_wm_name_reply(conn, cookie, &reply, NULL)) {
434 cookie = xcb_icccm_get_wm_client_machine(conn, iWin);
435 if (xcb_icccm_get_wm_client_machine_reply(conn, cookie, &reply, NULL)) {
486 xcb_connection_t *conn = pWMInfo->conn;
488 cookie = xcb_icccm_get_wm_protocols(conn, iWindow, pWMInfo->ewmh.WM_PROTOCOLS);
489 if (xcb_icccm_get_wm_protocols_reply(conn, cookie, &reply, NULL)) {
506 SendXMessage(xcb_connection_t *conn, xcb_window_t iWin, xcb_atom_t atmType, long nData)
520 xcb_send_event(conn, FALSE, iWin, XCB_EVENT_MASK_NO_EVENT, (const char *)&e);
533 cookie = xcb_get_property(pWMInfo->conn, FALSE, iWindow, pWMInfo->atmPrivMap,
535 reply = xcb_get_property_reply(pWMInfo->conn, cookie, NULL);
560 IsOverrideRedirect(xcb_connection_t *conn, xcb_window_t iWin)
566 cookie = xcb_get_window_attributes(conn, iWin);
567 reply = xcb_get_window_attributes_reply(conn, cookie, NULL);
591 cookie1 = xcb_icccm_get_wm_class(pWMInfo->conn, iWindow);
592 if (xcb_icccm_get_wm_class_reply(pWMInfo->conn, cookie1, &reply1,
603 cookie2 = xcb_icccm_get_wm_name(pWMInfo->conn, iWindow);
604 if (xcb_icccm_get_wm_name_reply(pWMInfo->conn, cookie2, &reply2, NULL)) {
627 if (!IsOverrideRedirect(pWMInfo->conn, iWindow)) {
666 if (!IsOverrideRedirect(pWMInfo->conn, iWindow)) {
678 winUpdateIcon(hWnd, pWMInfo->conn, iWindow, hIconNew);
830 xcb_configure_window(pWMInfo->conn, pNode->msg.iWindow,
843 xcb_configure_window(pWMInfo->conn, pNode->msg.iWindow,
850 xcb_change_property(pWMInfo->conn, XCB_PROP_MODE_REPLACE,
859 xcb_change_property(pWMInfo->conn, XCB_PROP_MODE_REPLACE,
884 xcb_unmap_window(pWMInfo->conn, pNode->msg.iWindow);
893 SendXMessage(pWMInfo->conn,
897 xcb_kill_client(pWMInfo->conn, pNode->msg.iWindow);
917 cookie = xcb_icccm_get_wm_hints(pWMInfo->conn, pNode->msg.iWindow);
918 if (xcb_icccm_get_wm_hints_reply(pWMInfo->conn, cookie, &hints,
925 xcb_set_input_focus(pWMInfo->conn, XCB_INPUT_FOCUS_POINTER_ROOT,
931 SendXMessage(pWMInfo->conn,
949 if (IsOverrideRedirect(pWMInfo->conn, pNode->msg.iWindow))
970 xcb_flush(pWMInfo->conn);
974 xcb_generic_event_t *event = xcb_poll_for_event(pWMInfo->conn);
988 int e = xcb_connection_has_error(pWMInfo->conn);
1012 intern_atom(xcb_connection_t *conn, const char *atomName)
1018 atom_cookie = xcb_intern_atom(conn, 0, strlen(atomName), atomName);
1019 atom_reply = xcb_intern_atom_reply(conn, atom_cookie, NULL);
1089 pProcArg->conn = xcb_connect_to_display_with_auth_info(pszDisplay,
1091 if (xcb_connection_has_error(pProcArg->conn)) {
1101 while (xcb_connection_has_error(pProcArg->conn) && iRetries < WIN_CONNECT_RETRIES);
1104 if (xcb_connection_has_error(pProcArg->conn)) {
1114 if (CheckAnotherWindowManager(pProcArg->conn, pProcArg->dwScreen)) {
1121 root_screen = xcb_aux_get_screen(pProcArg->conn, pProcArg->dwScreen);
1137 xcb_change_property(pProcArg->conn, XCB_PROP_MODE_REPLACE, root_window_id,
1142 atmWmName = intern_atom(pProcArg->conn, "WM_NAME");
1143 atmNetWmName = intern_atom(pProcArg->conn, "_NET_WM_NAME");
1144 atmWmHints = intern_atom(pProcArg->conn, "WM_HINTS");
1145 atmWmChange = intern_atom(pProcArg->conn, "WM_CHANGE_STATE");
1146 atmNetWmIcon = intern_atom(pProcArg->conn, "_NET_WM_ICON");
1147 atmWindowState = intern_atom(pProcArg->conn, "_NET_WM_STATE");
1148 atmMotifWmHints = intern_atom(pProcArg->conn, "_MOTIF_WM_HINTS");
1149 atmWindowType = intern_atom(pProcArg->conn, "_NET_WM_WINDOW_TYPE");
1150 atmNormalHints = intern_atom(pProcArg->conn, "WM_NORMAL_HINTS");
1160 intern_atom(pProcArg->conn, "WM_STATE");
1170 cookie = xcb_query_extension(pProcArg->conn, strlen(extension_name), extension_name);
1171 reply = xcb_query_extension_reply(pProcArg->conn, cookie, NULL);
1174 xcb_composite_redirect_subwindows(pProcArg->conn,
1207 event = xcb_wait_for_event(pProcArg->conn);
1209 int e = xcb_connection_has_error(pProcArg->conn);
1232 xcb_change_window_attributes (pProcArg->conn, notify->window,
1236 if (!IsOverrideRedirect(pProcArg->conn, notify->window)) {
1238 xcb_configure_window(pProcArg->conn, notify->window,
1265 cookie = xcb_get_geometry(pProcArg->conn, notify->window);
1266 cookie_qt = xcb_query_tree(pProcArg->conn, notify->window);
1267 reply = xcb_get_geometry_reply(pProcArg->conn, cookie, NULL);
1268 reply_qt = xcb_query_tree_reply(pProcArg->conn, cookie_qt, NULL);
1285 xcb_send_event (pProcArg->conn, TRUE, notify->window,
1312 xcb_send_event(pProcArg->conn, TRUE, notify->window,
1380 xcb_disconnect(pProcArg->conn);
1507 pWMInfo->conn = xcb_connect_to_display_with_auth_info(pszDisplay,
1509 if (xcb_connection_has_error(pWMInfo->conn)) {
1519 while (xcb_connection_has_error(pWMInfo->conn) && iRetries < WIN_CONNECT_RETRIES);
1522 if (xcb_connection_has_error(pWMInfo->conn)) {
1532 pWMInfo->atmWmProtos = intern_atom(pWMInfo->conn, "WM_PROTOCOLS");
1533 pWMInfo->atmWmDelete = intern_atom(pWMInfo->conn, "WM_DELETE_WINDOW");
1534 pWMInfo->atmWmTakeFocus = intern_atom(pWMInfo->conn, "WM_TAKE_FOCUS");
1535 pWMInfo->atmPrivMap = intern_atom(pWMInfo->conn, WINDOWSWM_NATIVE_HWND);
1536 pWMInfo->atmUtf8String = intern_atom(pWMInfo->conn, "UTF8_STRING");
1537 pWMInfo->atmNetWmName = intern_atom(pWMInfo->conn, "_NET_WM_NAME");
1538 pWMInfo->atmCurrentDesktop = intern_atom(pWMInfo->conn, "_NET_CURRENT_DESKTOP");
1539 pWMInfo->atmNumberDesktops = intern_atom(pWMInfo->conn, "_NET_NUMBER_OF_DESKTOPS");
1540 pWMInfo->atmDesktopNames = intern_atom(pWMInfo->conn, "__NET_DESKTOP_NAMES");
1545 atoms_cookie = xcb_ewmh_init_atoms(pWMInfo->conn, &pWMInfo->ewmh);
1576 root_screen = xcb_aux_get_screen(pWMInfo->conn, pProcArg->dwScreen);
1588 xcb_change_property(pWMInfo->conn, XCB_PROP_MODE_REPLACE, root_window_id,
1592 xcb_change_property(pWMInfo->conn, XCB_PROP_MODE_REPLACE, root_window_id,
1596 xcb_change_property(pWMInfo->conn, XCB_PROP_MODE_REPLACE, root_window_id,
1607 xcb_cursor_t cursor = xcb_generate_id(pWMInfo->conn);
1608 xcb_font_t font = xcb_generate_id(pWMInfo->conn);
1617 xcb_open_font(pWMInfo->conn, font, sizeof("cursor"), "cursor");
1619 xcb_create_glyph_cursor(pWMInfo->conn, cursor, font, *mask_font,
1623 xcb_change_window_attributes(pWMInfo->conn, root_window_id, mask, &value_list);
1625 xcb_free_cursor(pWMInfo->conn, cursor);
1626 xcb_close_font(pWMInfo->conn, font);
1655 CheckAnotherWindowManager(xcb_connection_t *conn, DWORD dwScreen)
1660 xcb_screen_t *root_screen = xcb_aux_get_screen(conn, dwScreen);
1671 xcb_void_cookie_t cookie = xcb_change_window_attributes_checked(conn,
1676 if ((error = xcb_request_check(conn, cookie)))
1692 xcb_change_window_attributes(conn, root_window_id, XCB_CW_EVENT_MASK, mask);
1726 xcb_connection_t *conn = pWMInfo->conn;
1743 windowState = intern_atom(conn, "_NET_WM_STATE");
1744 motif_wm_hints = intern_atom(conn, "_MOTIF_WM_HINTS");
1745 hiddenState = intern_atom(conn, "_NET_WM_STATE_HIDDEN");
1746 fullscreenState = intern_atom(conn, "_NET_WM_STATE_FULLSCREEN");
1747 belowState = intern_atom(conn, "_NET_WM_STATE_BELOW");
1748 aboveState = intern_atom(conn, "_NET_WM_STATE_ABOVE");
1749 skiptaskbarState = intern_atom(conn, "_NET_WM_STATE_SKIP_TASKBAR");
1750 splashType = intern_atom(conn, "_NET_WM_WINDOW_TYPE_SPLASHSCREEN");
1754 xcb_get_property_cookie_t cookie_wm_state = xcb_get_property(conn, FALSE, iWindow, windowState, XCB_ATOM_ATOM, 0L, INT_MAX);
1755 xcb_get_property_reply_t *reply = xcb_get_property_reply(conn, cookie_wm_state, NULL);
1779 xcb_get_property_cookie_t cookie_mwm_hint = xcb_get_property(conn, FALSE, iWindow, motif_wm_hints, motif_wm_hints, 0L, sizeof(MwmHints));
1780 xcb_get_property_reply_t *reply = xcb_get_property_reply(conn, cookie_mwm_hint, NULL);
1836 cookie = xcb_icccm_get_wm_normal_hints(conn, iWindow);
1837 if (xcb_icccm_get_wm_normal_hints_reply(conn, cookie, &size_hints, NULL)) {