XOSD_IS_ONSCREEN(3)
π XOSD_IS_ONSCREEN(3) β the manual page, bestie edition π
okay so this is xosd_is_onscreen(3), section 3 of the manual (the library functions girlies π«Ά). sit down, grab a strawberry drink π, and let's talk about how you find out if your OSD is actually, like, on the screen.
β¨ NAME β¨
xosd_is_onscreen β tells you whether the XOSD window is currently being shown π
πΈ SYNOPSIS πΈ
#include <xosd.h>
xosd *xosd_is_onscreen (xosd *osd);
π¦ DESCRIPTION π¦
xosd_is_onscreen determines whether an XOSD window is currently being shown β meaning, is it mapped to the X display? π
here's the tea: XOSD displays data asynchronously (go read xosd_display(3) for the details, iykyk), so it can be genuinely hard to know whether your data is being displayed or not. that's the whole problem. xosd_is_onscreen solves it. periodt. π
and if you want to change the visibility of the XOSD window? call xosd_show(3) or xosd_hide(3). those are your girls. β¨
π ARGUMENTS π
osdβ the XOSD window you wanna query. that's it, that's the whole argument. π
π RETURN VALUE π
1β the window is onscreen (mapped) π0β the window is hidden (unmapped) π-1β something went wrong π andxosd_errorgets set to tell you why.
π§ ENVIRONMENT π§
char *xosd_errorβ a string, pointing at a text string that describes the error, if one occurred. your little error diary. π
β HISTORY β
the xosd_is_onscreen function first appeared in version 2.1 of the XOSD library. so it's been iconic for a minute. π₯
π AUTHORS π
the XOSD library was originally written by AndrΓ© Renaud, and is currently maintained by Tim Wright, who also wrote the xosd_is_onscreen function. Michael JasonSmith thinks he wrote this document, but is not sure. drop Micahel an email (<mike@ldots.org>) if you think he didn't write this document. π (not me spelling it "Micahel", that's literally what the manpage says, no cap)
π BUGS π
there are no known bugs with xosd_is_onscreen. she's clean, she's flawless, she ate. π½οΈ
bug reports can be sent to <xosd@ignavus.net> if you somehow find one. π«Ά
π₯ SEE ALSO π₯
xosd_display(3), xosd_show(3), xosd_hide(3).
mwah π that's the whole page, bestie β go forth and vibe check your windows. this was xosd_is_onscreen(3) from the XOSD library, and you've officially reached the end of the page. main character energy, honestly. π
π¦ where this page comes from
- debian bookworm: libxosd-dev 2.2.14-2.1+b1
- debian trixie: libxosd-dev 2.2.15-1 Β· GPL-2.0-or-later
- ubuntu jammy: libxosd-dev 2.2.14-2.1build1
- ubuntu noble: libxosd-dev 2.2.14-2.1build1
- ubuntu questing: libxosd-dev 2.2.15-1.1
- ubuntu resolute: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- ubuntu stonking: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms