mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Cycle Near Region, remove extraneous spaces
This commit is contained in:
parent
206a72edf8
commit
f8852af6ff
1 changed files with 2 additions and 2 deletions
|
|
@ -150,13 +150,13 @@ desktop_cycle_view_near_region(struct server *server, struct view *active_view,
|
||||||
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE;
|
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE;
|
||||||
|
|
||||||
struct view *cur;
|
struct view *cur;
|
||||||
struct wlr_box intersect;
|
struct wlr_box intersect;
|
||||||
|
|
||||||
iter = view_prev_no_head_stop;
|
iter = view_prev_no_head_stop;
|
||||||
|
|
||||||
cur = iter(&server->views, active_view, criteria);
|
cur = iter(&server->views, active_view, criteria);
|
||||||
while (cur && cur != active_view) {
|
while (cur && cur != active_view) {
|
||||||
wlr_box_intersection(&intersect, &cur->current, ®ion->geo);
|
wlr_box_intersection(&intersect, &cur->current, ®ion->geo);
|
||||||
if (!cur->minimized && !wlr_box_empty(&intersect)) {
|
if (!cur->minimized && !wlr_box_empty(&intersect)) {
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue