| 55 | typedef struct _FocusKeepStatus FocusKeepStatus; |
| 56 | |
| 57 | void init_focus_keep_struct(FocusKeepStatus* stat) |
| 58 | { |
| 59 | stat->active_window = 0; |
| 60 | stat->new_window = 0; |
| 61 | stat->start_switch_window = FALSE; |
| 62 | stat->start_close_window = FALSE; |
| 63 | stat->during_switch = FALSE; |
| 64 | stat->during_close = FALSE; |
| 65 | stat->should_steal_focus = FALSE; |
| 66 | // This boolean is for remembering if we already had a FocusIn event and |
| 67 | // never re-send that event as well, not to break clients which expect to get |
| 68 | // FocusOut before FocusIn |
| 69 | stat->encountered_focus_in_event = FALSE; |
| 70 | // This remembers if the active was learnt due to a close |
| 71 | stat->active_window_from_close = FALSE; |
| 72 | }; |
| 73 | |
| 74 | Window get_active_window(FocusKeepStatus* stat) |
| 75 | { |
no outgoing calls
no test coverage detected