diff --git a/data/config/behavior/default/actions.db b/data/config/behavior/default/actions.db index a53792b3c..6ae38d604 100644 Binary files a/data/config/behavior/default/actions.db and b/data/config/behavior/default/actions.db differ diff --git a/src/border.c b/src/border.c index 7c29519ce..de3074a65 100644 --- a/src/border.c +++ b/src/border.c @@ -2360,16 +2360,16 @@ e_border_viewable(E_Border *b) if (b->desk != e_desktops_get(e_desktops_get_current())) return 0; - if (b->current.x + b->current.w < b->desk->x) + if (b->current.x + b->current.w <= 0) return 0; - if (b->current.x > b->desk->x + b->desk->real.w) + if (b->current.x >= b->desk->real.w) return 0; - if (b->current.y + b->current.h < b->desk->y) + if (b->current.y + b->current.h <= 0) return 0; - if (b->current.y > b->desk->y + b->desk->real.h) + if (b->current.y >= b->desk->real.h) return 0; return 1; @@ -2401,6 +2401,7 @@ e_border_raise_next(void) else next = borders; + /* Now find the next viewable border on the same desktop */ current = (E_Border *)next->data; while (next && !e_border_viewable(current)) {