xcb_randr_set_output_primary(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_randr_set_output_primary πŸ’–

okay bestie, welcome to the manual page for xcb_randr_set_output_primary β€” it's a lil XCB request from the XCB Requests girlies, and we're gonna get you comfy with it. no cap, it's a short one, but we're gonna treat every line like the icon it is. πŸŽ€


🌸 NAME 🌸

xcb_randr_set_output_primary</purpose>

(yeah, the original left the description blank. she's mysterious like that. πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

first things first, you gotta bring her in:

#include <xcb/randr.h>

✨ Request function ✨

xcb_void_cookie_t xcb_randr_set_output_primary(xcb_connection_t *conn,
       xcb_window_t window, xcb_randr_output_t output);

that's the whole move. one function, three args, done. 🫢


πŸ’œ REQUEST ARGUMENTS πŸ’œ

  • conn β€” the XCB connection to X11. it's your lil hotline to the X server, your main character linkup. πŸ”₯
  • window β€” TODO: NOT YET DOCUMENTED. 😭 yeah. the docs said "idk yet" and honestly? relatable. the manual literally does not tell us what this one does, so we're not gonna make anything up β€” the original leaves it as a TODO and so do we.
  • output β€” TODO: NOT YET DOCUMENTED. 😭 same energy. no notes, because there are literally no notes.

πŸ’– DESCRIPTION πŸ’–

so the DESCRIPTION section is... empty. πŸ«₯ nothing. zero. the void. the silence is the vibe. this page is giving "we only documented the signature and dipped." and you know what? we respect it. πŸ’…


⭐ RETURN VALUE ⭐

she hands you back an xcb_void_cookie_t. iconic. but heads up β€” errors (if any) have to be handled in the event loop. so don't just yeet the cookie and forget about it, bestie. πŸ™ˆ

if you'd rather deal with errors directly using xcb_request_check instead, then use xcb_randr_set_output_primary_checked. that's the checked girlie of the family. see xcb-requests(3) for the details. πŸ“–


🌈 ERRORS 🌈

This request does never generate any errors. πŸŽ‰

fr fr. zero errors. she simply does not miss. no drama, no error codes, nothing to handle. slay. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

...nothing here either, bestie. the section exists, but it's empty. she's a minimalist. 🌸


🧚 AUTHOR 🧚

Generated from randr.xml. if you spot something wrong or wanna make it better, hit up xcb@lists.freedesktop.org for corrections and improvements. the group chat is always open. πŸ’Œ


and that's the whole page, babes!! this manual came to you courtesy of X Version 11 and libxcb 1.17.0 β€” so when you're out here setting output primaries, just know the libxcb 1.17.0 girlies had your back. go be the main character of your own X session. periodt. πŸ’…βœ¨πŸ¦‹πŸ’–