mirror of
https://github.com/NickHu/sway
synced 2025-01-15 15:41:59 +01:00
Don't focus tabbed and stacked containers on mouseover
This commit is contained in:
parent
50305055c9
commit
87af08966a
1 changed files with 5 additions and 1 deletions
|
@ -162,7 +162,11 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
||||||
seat_set_focus_warp(cursor->seat, c, false);
|
seat_set_focus_warp(cursor->seat, c, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
seat_set_focus_warp(cursor->seat, c, false);
|
// Don't switch focus on mouseover for stacked and tabbed layouts
|
||||||
|
if(c->parent && c->parent->layout != L_STACKED
|
||||||
|
&& c->parent->layout != L_TABBED) {
|
||||||
|
seat_set_focus_warp(cursor->seat, c, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue