mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Fixed styling issues
This commit is contained in:
parent
e19fe56e2f
commit
f85d3e15ba
|
@ -169,17 +169,17 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
||||||
bool do_mouse_focus = true;
|
bool do_mouse_focus = true;
|
||||||
struct sway_container *p = c->parent;
|
struct sway_container *p = c->parent;
|
||||||
struct sway_container *first_tabbed_parent = c->parent;
|
struct sway_container *first_tabbed_parent = c->parent;
|
||||||
while(p) {
|
while (p) {
|
||||||
if(p->layout == L_TABBED || p->layout == L_STACKED) {
|
if (p->layout == L_TABBED || p->layout == L_STACKED) {
|
||||||
do_mouse_focus = false;
|
do_mouse_focus = false;
|
||||||
first_tabbed_parent = p;
|
first_tabbed_parent = p;
|
||||||
}
|
}
|
||||||
p = p->parent;
|
p = p->parent;
|
||||||
}
|
}
|
||||||
if(!do_mouse_focus) {
|
if (!do_mouse_focus) {
|
||||||
struct sway_container *next_focus = seat_get_focus_inactive(
|
struct sway_container *next_focus = seat_get_focus_inactive(
|
||||||
cursor->seat, first_tabbed_parent);
|
cursor->seat, first_tabbed_parent);
|
||||||
if(next_focus) {
|
if (next_focus) {
|
||||||
seat_set_focus_warp(cursor->seat, next_focus, false);
|
seat_set_focus_warp(cursor->seat, next_focus, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue