xcb_set_screen_saver(3)
π xcb_set_screen_saver π
okay bestie, welcome to the xcb_set_screen_saver page β it's part of the XCB Requests crew (XCB = that X11 C binding we all know and love) π¦
so like. you wanna tell the X server how to behave when your screen's been idle? that's literally this. let's go π
β¨ SYNOPSIS β¨
#include <xcb/xproto.h>
π Request function π
xcb_void_cookie_t xcb_set_screen_saver(xcb_connection_t *conn,
int16_t timeout, int16_t interval, uint8_t prefer_blanking,
uint8_t allow_exposures);
that's the whole vibe right there. one function, four args, and a void cookie. slay β¨
πΈ REQUEST ARGUMENTS πΈ
connβ the XCB connection to X11. your lil link to the server, no cap π«ΆtimeoutβTODO: NOT YET DOCUMENTED.π (yeah the docs really said "figure it out bestie")intervalβTODO: NOT YET DOCUMENTED.π (same energy, same mystery)prefer_blankingβ pick one of these cuties:XCB_BLANKING_NOT_PREFERREDβTODO: NOT YET DOCUMENTED.XCB_BLANKING_PREFERREDβTODO: NOT YET DOCUMENTED.XCB_BLANKING_DEFAULTβTODO: NOT YET DOCUMENTED.and then, one more time for the people in the back:TODO: NOT YET DOCUMENTED.π
allow_exposuresβ also a choose-your-own-adventure:XCB_EXPOSURES_NOT_ALLOWEDβTODO: NOT YET DOCUMENTED.XCB_EXPOSURES_ALLOWEDβTODO: NOT YET DOCUMENTED.XCB_EXPOSURES_DEFAULTβTODO: NOT YET DOCUMENTED.and yes, once again:TODO: NOT YET DOCUMENTED.π
π DESCRIPTION π
so bestieβ¦ the DESCRIPTION section on this page is empty. like, genuinely nothing. main character walked in, said absolutely nothing, and left. iconic behaviour honestly π
(we're not gonna make stuff up for it either β no cap, we keep it exactly as empty as it is π)
π₯ RETURN VALUE π₯
it hands you back an xcb_void_cookie_t. that's the whole return vibe.
and here's the thing: any errors (if there even are any) have to be handled in the event loop, so don't come crying to the return value about it π
now β if you'd rather deal with errors directly with xcb_request_check instead, then use xcb_set_screen_saver_checked and go off. xcb-requests(3) has the full tea on how that works π
π ERRORS π
this request does never generate any errors. never ever. zero. zilch. clean sheet. periodt β¨
π SEE ALSO π
nothing listed here, bestie β the SEE ALSO section is empty. an empty shelf. we respect it π
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements π«Ά
and that's the page!! ok bye, go write some X11 code, you absolute legend π πΈ
X Version 11 Β· libxcb 1.17.0 Β· this was xcb_set_screen_saver(3) β mwah, catch you in the next manpage, bestie πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms