1TICKIT_WINDOW_SET_STEAL_INPULTi(b3r)ary Functions MaTnIuCaKlIT_WINDOW_SET_STEAL_INPUT(3)
2
3
4
6 tickit_window_set_steal_input - control whether windows steal all input
7 events
8
10 #include <tickit.h>
11
12 bool tickit_window_is_steal_input(const TickitWindow *win);
13 void tickit_window_set_steal_input(TickitWindow *win, bool steal);
14
15 Link with -ltickit.
16
18 tickit_window_is_steal_input() returns the current state of the input-
19 stealing setting on the window. If true, this causes the window to have
20 special behaviour on input events that are likely to be useful to
21 implement popup windows. Specifically, the window receives all key
22 events on its parent even before the sibling with the input focus
23 receives them, provided it is the front-most child of its parent. Addi‐
24 tionally, the window will receive all mouse events, even those outside
25 of its geometry.
26
27 tickit_window_set_steal_input() changes the value of this setting.
28
29 The initial value is normally false, unless the TICKIT_WIN‐
30 DOW_STEAL_INPUT flag was passed to the tickit_window_new(3) function
31 call that created the window.
32
33 This function is discouraged in favour of using the
34 TICKIT_WINCTL_STEAL_INPUT window control with tickit_win‐
35 dow_setctl_int(3).
36
38 tickit_window_is_steal_input() returns a boolean. tickit_win‐
39 dow_set_steal_input() returns no value.
40
42 tickit_window_new(3), tickit_window(7), tickit(7)
43
44
45
46 TICKIT_WINDOW_SET_STEAL_INPUT(3)