xdo_get_focused_window_sane

Like xdo_get_focused_window, but return the first ancestor-or-self window * having a property of WM_CLASS. This allows you to get the "real" or top-level-ish window having focus rather than something you may not expect to be the window having focused.

@param window_ret Pointer to a window where the currently-focused window will be stored.

extern (C) nothrow @nogc
int
xdo_get_focused_window_sane
(
const xdo_t* xdo
,
Window* window_ret
)

Meta