XpInputSelected(3Xp)
π XpInputSelected β like, the vibe check for your X Print events π
Okay bestie, so this is XpInputSelected from the XPRINT FUNCTIONS section of the manual (it's XpInputSelected(3Xp) if you're keeping track β¨). It tells you which X Print events a client has signed up to receive from one specific print context. Very demure, very mindful, very query-energy. π
β¨ SYNOPSIS β¨
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
unsigned long XpInputSelected ( display, context, event_mask )
Display *display;
XPContext context;
unsigned long *all_event_mask_return;
(Yes, the synopsis line says event_mask in the parameter list β that's literally how it's written, don't come for me π β the actual declared param is all_event_mask_return. Both are shown above exactly as the page gives them. π)
π«Ά ARGUMENTS π«Ά
displayβ a pointer to theDisplaystructure, which you got back fromXOpenDisplay. The classic. The main character. πcontextβ the print context you're querying. This is the specific one, not a vibe in general. π¨οΈall_event_mask_returnβ returns the set of events that any client has selected. So like, the group chat's collective choices, not just yours. π
πΈ DESCRIPTION πΈ
So XpInputSelected returns a bit mask describing which event classes this client has selected to receive. Slay. β¨
The value handed back to all_event_mask_return is the union of every client's event mask β literally everyone's selections combined. No cap. π«Ά
XpInputSelected queries which X Print events, from the specified print context, the client has selected to receive. Here's the important little twist: the X Print Events are generated from a print context, and not from a window like they are with XSelectInput. Different beast entirely, bestie. π¦
As events arrive, the context field in the event is used to figure out which print context generated it. Detective work, but make it X11. π
See XpSelectInput for the event_mask and all_event_mask (??return??) values. (That ??return?? is in the original, I'm just the messenger ππ)
π DIAGNOSTICS π
XPBadContextβ the specified print context is not valid. Not iconic of it, honestly. π©
π₯ SEE ALSO π₯
XpSelectInput(3Xp)
That's the whole page, bestie β go forth and query those event masks π
A lil sign-off: this came from X Version 11, libXp 1.0.4, and yes the whole thing is stamped XpInputSelected(3Xp) β periodt. π
β¨
π¦ where this page comes from
- arch rolling: libxp 1.0.4-3 Β· X11 AND X11-distribute-modifications-variant
- nixos 26.05: libxp 1.0.4
- nixpkgs unstable: libxp 1.0.4
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- Copyright 1996 Hewlett-Packard Company
- Copyright 1996 International Business Machines Corp
- Copyright 1996, 1999, 2004, Oracle and/or its affiliates. All rights reserved
- Copyright 1996 Novell, Inc
- Copyright 1996 Digital Equipment Corp
- Copyright 1996 Fujitsu Limited
- Copyright 1996 Hitachi, Ltd
- Copyright 1996 X Consortium, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms