window layouter: let focus follow the pointer

This commit is contained in:
Norman Feske 2015-06-05 23:15:55 +02:00 committed by Christian Helmuth
parent 0cc314399c
commit a3d78d3779

View File

@ -549,6 +549,14 @@ void Floating_window_layouter::Main::handle_hover_update(unsigned)
hovered_window_id = id;
hovered_element = hovered;
/* XXX read from config */
bool const focus_follows_pointer = true;
if (id && focus_follows_pointer) {
focused_window_id = id;
generate_focus_model();
}
generate_window_layout_model();
}
} catch (...) {