Partially revert "Fix incorrect merge *sigh*"

This commit is contained in:
Michael Stapelberg 2018-03-10 21:44:04 +01:00 committed by Michael Stapelberg
parent 74c0e1b866
commit 010e86605d
1 changed files with 0 additions and 8 deletions

View File

@ -1207,14 +1207,6 @@ static bool handle_clientleader_change(void *data, xcb_connection_t *conn, uint8
*/ */
static void handle_focus_in(xcb_focus_in_event_t *event) { static void handle_focus_in(xcb_focus_in_event_t *event) {
DLOG("focus change in, for window 0x%08x\n", event->event); DLOG("focus change in, for window 0x%08x\n", event->event);
if (event->event == root) {
DLOG("Received focus in for root window, refocusing the focused window.\n");
con_focus(focused);
focused_id = XCB_NONE;
x_push_changes(croot);
}
Con *con; Con *con;
if ((con = con_by_window_id(event->event)) == NULL || con->window == NULL) if ((con = con_by_window_id(event->event)) == NULL || con->window == NULL)
return; return;