xcb_circulate_window(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_circulate_window β€” from the xcb_circulate_window(3) manual, bestie πŸ’–

okay so picture this: you're deep in the XCB docs (iconic of you), and you found the one that literally just shuffles windows around in the stack. that's it. that's the girl. no cap, she does one job and she does it flawlessly. πŸ¦‹


✨ NAME ✨

xcb_circulate_window β€” change window stacking order πŸ’…


🌸 SYNOPSIS 🌸

#include <xcb/xproto.h>

πŸŽ€ Request function πŸŽ€

xcb_void_cookie_t xcb_circulate_window(xcb_connection_t *conn,
       uint8_t direction, xcb_window_t window);

πŸ’œ REQUEST ARGUMENTS πŸ’œ

  • conn β€” the XCB connection to X11. your lil hotline to the server, basically 🫢
  • direction β€” one of these values, periodt:
    • XCB_CIRCULATE_RAISE_LOWEST β€” TODO: NOT YET DOCUMENTED. 😭 yeah bestie, the docs really said "we'll get to it" and then didn't. not our fault, we're just reporting the facts fr fr.
    • XCB_CIRCULATE_LOWER_HIGHEST β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ same energy, same missing tea.
  • window β€” the window to raise/lower (depends on which direction you picked, obviously πŸ’…).

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check. if direction is XCB_CIRCULATE_RAISE_LOWEST, the lowest mapped child (if there even is one, no pressure) gets raised all the way to the top of the stack. glow up moment. πŸ‘‘

and if direction is XCB_CIRCULATE_LOWER_HIGHEST, then the highest mapped child gets lowered straight to the bottom of the stack. it's giving humble era. 🌈


⭐ RETURN VALUE ⭐

she returns an xcb_void_cookie_t. any errors? those have to be handled in the event loop, bestie β€” that's just how the cookie crumbles πŸ“.

but wait, if you'd rather handle errors directly with xcb_request_check instead, then use xcb_circulate_window_checked. head to xcb-requests(3) for the full details, iykyk.


πŸ’€ ERRORS πŸ’€

  • xcb_value_error_t β€” the specified direction is invalid. like, pick a real one bestie 😭
  • xcb_window_error_t β€” the specified window does not exist. she's not here. she never was. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (they're literally asking for your input, so speak up bestie 🫢)


and that's the whole page, no notes. this one ships as part of X Version 11, specifically libxcb 1.17.0 β€” go forth and stack your windows exactly how you want them. slay, stay hydrated, and remember: mapped children only. πŸ’–βœ¨πŸŽ€