DMXAddScreen(3)
π DMXAddScreen β from the libdmx crew (that's the Library Functions Manual, bestie) π
okay so real talk, this one's about gluing a whole new back-end screen onto your Xdmx setup. it's giving "let me in" energy. let's go π«Ά
β¨ NAME β¨
DMXAddScreen β attach a new back-end screen πΈ
π¦ SYNOPSIS π¦
#include <X11/extensions/dmxext.h>
Bool DMXAddScreen(Display *dpy,
const char *displayName,
unsigned int mask,
DMXScreenAttributes *attr,
int *screen);
π DESCRIPTION π
DMXAddScreen() attaches a back-end screen to the Xdmx(1) server, and it slots it right into the spot of the previously detached back-end server that screen is pointing at. like, it's taking over the vacated seat. iconic behavior honestly.
displayName is the name of the new back-end display, mask says which fields in attr are actually active, and screen hands you back the new Xdmx(1) screen number for the screen that just got attached. β¨
the info chillin' in mask and attr is literally identical to what DMXChangeScreensAttributes(3) and DMXGetScreenAttributes(3) use. same vibes, same data, no cap.
π RETURN VALUE π
DMXAddScreen() returns True if the screen was successfully attached, and False otherwise. periodt.
and False comes back at you when:
- the
-addremovescreenscommand line option was not specified on theXdmx(1)command line π - the input value of
screenis out of range screenis not currently detacheddisplayNamecannot be opened- it has unexpected visuals
- or it has characteristics that do not match the previously detached screen π
DMXAddScreen() can generate BadLength, BadAlloc, and BadValue errors.
π NOTES π
attributes that are not specified will default to 0. and bestie, that may lead to unintended results. not me warning you twice, but likeβ¦ be careful π
unlike the other functions in the DMX(3) API, this one uses screen for both input and output. she's doing double duty. main character energy fr fr. π
πΈ SEE ALSO πΈ
X Version 11, libdmx 1.1.5, DMXAddScreen(3) β that's the whole vibe check, bestie, mwah π stay hydrated, read your man pages, and go attach something slay β¨π¦
π¦ 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