MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / init_focus_keep_struct

Function init_focus_keep_struct

cpp/linux-specific/x_ignore_nofocus.c:57–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55typedef struct _FocusKeepStatus FocusKeepStatus;
56
57void 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
74Window get_active_window(FocusKeepStatus* stat)
75{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected