recheck_focus doesn't need to return anything
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
9c50bc58cb
commit
20e60a87fa
|
@ -319,11 +319,11 @@ uint32_t determine_evmask(session_t *ps, xcb_window_t wid, win_evmode_t mode) {
|
||||||
* @param ps current session
|
* @param ps current session
|
||||||
* @return struct _win of currently focused window, NULL if not found
|
* @return struct _win of currently focused window, NULL if not found
|
||||||
*/
|
*/
|
||||||
struct managed_win *recheck_focus(session_t *ps) {
|
void recheck_focus(session_t *ps) {
|
||||||
// Use EWMH _NET_ACTIVE_WINDOW if enabled
|
// Use EWMH _NET_ACTIVE_WINDOW if enabled
|
||||||
if (ps->o.use_ewmh_active_win) {
|
if (ps->o.use_ewmh_active_win) {
|
||||||
update_ewmh_active_win(ps);
|
update_ewmh_active_win(ps);
|
||||||
return ps->active_win;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine the currently focused window so we can apply appropriate
|
// Determine the currently focused window so we can apply appropriate
|
||||||
|
@ -345,10 +345,8 @@ struct managed_win *recheck_focus(session_t *ps) {
|
||||||
// And we set the focus state here
|
// And we set the focus state here
|
||||||
if (w) {
|
if (w) {
|
||||||
win_set_focused(ps, w, true);
|
win_set_focused(ps, w, true);
|
||||||
return w;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,7 +42,7 @@ uint32_t determine_evmask(session_t *ps, xcb_window_t wid, win_evmode_t mode);
|
||||||
|
|
||||||
xcb_window_t find_client_win(session_t *ps, xcb_window_t w);
|
xcb_window_t find_client_win(session_t *ps, xcb_window_t w);
|
||||||
|
|
||||||
struct managed_win *recheck_focus(session_t *ps);
|
void recheck_focus(session_t *ps);
|
||||||
|
|
||||||
/// Handle configure event of a root window
|
/// Handle configure event of a root window
|
||||||
void configure_root(session_t *ps, int width, int height);
|
void configure_root(session_t *ps, int width, int height);
|
||||||
|
|
Loading…
Reference in New Issue