TICKIT_WINDOW_IS_STEAL_INPUT(3)
π NAME π
tickit_window_set_steal_input β bestie, this is the little switch that decides whether a window steals all the input events πβ¨
πΈ SYNOPSIS πΈ
#include <tickit.h>
bool tickit_window_is_steal_input(const TickitWindow *win);
void tickit_window_set_steal_input(TickitWindow *win, bool steal);
Link with -ltickit.
π DESCRIPTION π
Okay so first up, tickit_window_is_steal_input() β she's the read-only girlie. She tells you the current state of the input-stealing setting on the window. Returns a bool, no drama, no side effects. π«Ά
And when it's true? Ooh bestie, that's main character energy for real. It gives the window special behaviour on input events, and the whole point is that it's likely to be useful for implementing popup windows. So here's the tea β:
- The window receives all key events on its parent β and it gets them even before the sibling with the input focus receives them, provided it is the front-most child of its parent. Yeah. Front of the line. π
- On top of that, the window will receive all mouse events, even those outside of its geometry. Not even contained, fr fr. π
tickit_window_set_steal_input() is the one that actually changes the value of this setting. You pass steal, you set the vibe. β¨
The initial value is normally false β like, chill, not stealing anything β unless the TICKIT_WINDOW_STEAL_INPUT flag was passed to the tickit_window_new(3) function call that created the window. Then she came out of the box already in her villain era. π
β οΈ Heads up bestie: this function is discouraged in favour of using theTICKIT_WINCTL_STEAL_INPUTwindow control withtickit_window_setctl_int(3). So likeβ¦ it works, it's iconic, but the cool kids are doing it the other way now. π
π RETURN VALUE π
tickit_window_is_steal_input()returns a boolean.trueorfalse, that's it, that's the whole meal. πtickit_window_set_steal_input()returns no value. She gives nothing back and that's on periodt. π
π SEE ALSO π
okay that's the whole page, you ate it, you understood it, I'm so proud π₯Ήπ
this has been the Library Functions Manual chapter of the Tickit saga, filed under TICKIT_WIN...STEAL_INPUT(3) β mwah, bye bestie, go steal some input π
β¨π¦
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms