Merge pull request #3562 from vilhalmer/focus_follows_mouse-workspace-last-inactive

Focus workspace inactive node with focus_follows_mouse
This commit is contained in:
Drew DeVault 2019-02-03 20:15:21 +01:00 committed by GitHub
commit a1a99421a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
struct sway_output *focused_output = node_get_output(focus);
struct sway_output *output = node_get_output(node);
if (output != focused_output) {
seat_set_focus(seat, node);
seat_set_focus(seat, seat_get_focus_inactive(seat, node));
}
} else if (node->type == N_CONTAINER && node->sway_container->view) {
// Focus node if the following are true: