DMXChangeS...Attributes(3)
β¨ DMXChangeS...Attributes(3) β¨
okay bestie, so this one's from the Library Functions Manual and it's literally called DMXChangeScreensAttributes π
let's get into it
π NAME π
DMXChangeScreensAttributes β change back-end screen attributes
πΈ SYNOPSIS πΈ
#include <X11/extensions/dmxext.h>
int DMXChangeScreensAttributes(Display *dpy,
int screen_count,
int *screens,
int mask_count,
unsigned int *masks,
DMXScreenAttributes *attr,
int *error_screen);
π¦ DESCRIPTION π¦
so basically, DMXChangeScreensAttributes() is the glow-up function π
it changes the geometries and positions of the DMX screen and DMX root windows over on the back-end X servers. like, you're rearranging the whole vibe.
screen_counttells you how many screens are getting changed, periodt.- for each screen: the screen number goes in
screens, an attribute mask goes inmasks, and aDMXScreenAttributesstructure goes inattr. three little slots, one per screen, no cap.
oh and if you want the full explanation of the DMXScreenAttributes structure? it's all in DMXGetScreenAttributes(3) β go read that one, bestie, it ate π«Ά
π the mask values π
the values used to compute each entry in masks are these, exactly:
DMXScreenWindowWidthDMXScreenWindowHeightDMXScreenWindowXoffsetDMXScreenWindowYoffsetDMXRootWindowWidthDMXRootWindowHeightDMXRootWindowXoffsetDMXRootWindowYoffsetDMXRootWindowXoriginDMXRootWindowYorigin
π the mask_count shortcut π
ngl, in general mask_count should just be equal to screen_count. that's the standard, that's the moment.
but β as a little convenience β mask_count can be less than screen_count, and then the last entry in masks gets reused for all the remaining screens. it's giving "one mask, many screens" β¨ and it means you can make identical changes across several screens using just one mask. iconic behavior honestly.
π₯ RETURN VALUE π₯
on success, 0 is returned. slay. π
otherwise, error_screen gets set to the value of the first screen in the list that caused the error, and a non-zero value comes back at you.
- if
screen_countormask_countis less than1, or if any of the attribute values are not within the appropriate bounding boxes βDmxBadValueis returned π - if a protocol error happens β
DmxBadReplyis returned π
also,DMXChangeScreensAttributes()can generateBadLength(if the data you provided does not match the data implicitly required by thescreen_countandmask_countvalues),BadValue(if the values inscreensare not valid), andBadAllocerrors. so like... be careful out there π
π SEE ALSO π
and that's the whole page, bestie!! π«Ά this one came to you from X Version 11, libdmx 1.1.5, and it lives in the Library Functions Manual as DMXChangeS...Attributes(3). mwah π go change some screens, you main character π
π¦ where this page comes from
- epel 10: libdmx-devel 1.1.5-5.el10_1 Β· MIT
- fedora 43: libdmx-devel 1.1.5-6.fc43 Β· MIT
- fedora 43: libdmx-devel 1.1.5-6.fc43 Β· MIT
- fedora 44: libdmx-devel 1.1.5-7.fc44 Β· MIT
- fedora 44: libdmx-devel 1.1.5-7.fc44 Β· MIT
- nixos 26.05: libdmx 1.1.5
- nixpkgs unstable: libdmx 1.1.5
- opensuse-leap 16.0: libdmx-devel 1.1.5-160000.3.2 Β· MIT
- opensuse-leap 16.0: libdmx-devel 1.1.5-160000.3.2 Β· MIT
- opensuse-leap 16.0: libdmx-devel 1.1.5-160000.3.2 Β· MIT
- opensuse-leap 16.0: libdmx-devel 1.1.5-160000.3.2 Β· MIT
- Copyright 2004 Red Hat Inc., Durham, North Carolina
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms