OK, found kind of solution: so according to the (mentioned above) clue found a while ago WM may indeed override these values — and there's a need to mess with that window further using xcb_configure_window function. In this particular case the following should be added right before /* Free the Generic Event */ comment line:
uint32_t vals[5];
vals[0] = (screen->width_in_pixels / 2) - (600 / 2);
vals[1] = (screen->height_in_pixels / 2) - (400 / 2);
vals[2] = 600;
vals[3] = 400;
vals[4] = 20;
xcb_configure_window(c, win, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT |
XCB_CONFIG_WINDOW_BORDER_WIDTH, vals);
xcb_flush(c);
I noted that the above still somehow did not allow me to change „border width” of the window (anyone knows why?) — while its size and position have been changed accordingly.