DMXRemoveInput(3)

πŸ“¦
version 1.1.5 Β· 2 versions
, in epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… DMXRemoveInput β€” the library functions manual, but make it cute

okay bestie, so this is a page from the Library Functions Manual, and it's all about DMXRemoveInput(3) β€” one of the libdmx girlies. sit down, hydrate, let's get into it 🫢


✨ NAME ✨

DMXRemoveInput β€” detach an input πŸ’”


🌸 SYNOPSIS 🌸

#include <X11/extensions/dmxext.h>

Bool DMXRemoveInput(Display *dpy,
                    int id);

look at her. two args, no drama, returns a Bool. iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

so DMXRemoveInput() detaches the input device with id, and like… all of its associated inputs too. not just the one you asked for. the whole friend group.

fr fr β€” if the id is a backend mouse and a keyboard is also attached to that same backend, then both devices get detached. mouse and keyboard, gone together, no cap. 😭

it's giving "you didn't just dump him, you dumped his whole group chat."


πŸ’– RETURN VALUE πŸ’–

DMXRemoveInput() returns True β€” unless there's a protocol error, in which case, well. πŸ™ˆ

and heads up, she can throw some errors at you:

  • BadValue β€” if the id is not valid
  • BadAccess β€” if the input has already been detached (bestie, she's already gone, let her go πŸ’€)

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you ate that πŸŽ€ go read the SEE ALSO links like the main character you are ⭐

X Version 11 Β· libdmx 1.1.5 Β· and this was DMXRemoveInput(3) β€” mwah, slay, periodt πŸ’…βœ¨