Skip to content

Commit

Permalink
Initially give focus to the root window
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Aug 30, 2013
1 parent d454596 commit 8448fe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bspwm.c
Expand Up @@ -240,6 +240,10 @@ void setup(void)
ewmh_update_desktop_names();
ewmh_update_current_desktop();
frozen_pointer = make_pointer_state();
xcb_get_input_focus_reply_t *ifo = xcb_get_input_focus_reply(dpy, xcb_get_input_focus(dpy), NULL);
if (ifo != NULL && (ifo->focus == XCB_INPUT_FOCUS_POINTER_ROOT || ifo->focus == XCB_NONE))
clear_input_focus();
free(ifo);
}

void register_events(void)
Expand Down

0 comments on commit 8448fe0

Please sign in to comment.