recheck_focus doesn't need to return anything

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-05-24 22:40:36 +01:00
parent 9c50bc58cb
commit 20e60a87fa
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 4 additions and 6 deletions

View File

@ -319,11 +319,11 @@ uint32_t determine_evmask(session_t *ps, xcb_window_t wid, win_evmode_t mode) {
* @param ps current session
* @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
if (ps->o.use_ewmh_active_win) {
update_ewmh_active_win(ps);
return ps->active_win;
return;
}
// 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
if (w) {
win_set_focused(ps, w, true);
return w;
return;
}
return NULL;
}
/**

View File

@ -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);
struct managed_win *recheck_focus(session_t *ps);
void recheck_focus(session_t *ps);
/// Handle configure event of a root window
void configure_root(session_t *ps, int width, int height);