Fix incorrect merge *sigh*
This commit is contained in:
parent
de0ff844e0
commit
ffcf2bca85
|
@ -243,13 +243,6 @@ void con_focus(Con *con) {
|
||||||
workspace_update_urgent_flag(con_get_workspace(con));
|
workspace_update_urgent_flag(con_get_workspace(con));
|
||||||
ipc_send_window_event("urgent", con);
|
ipc_send_window_event("urgent", con);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Focusing a container with a floating parent should raise it to the top. Since
|
|
||||||
* con_focus is called recursively for each parent we don't need to use
|
|
||||||
* con_inside_floating(). */
|
|
||||||
if (con->type == CT_FLOATING_CON) {
|
|
||||||
floating_raise_con(con);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1207,6 +1207,14 @@ 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;
|
||||||
|
|
Loading…
Reference in New Issue