mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
remove spaces
This commit is contained in:
parent
b35256831e
commit
ddaca80d2a
1 changed files with 4 additions and 4 deletions
|
|
@ -762,7 +762,7 @@ actions_run(struct view *activator, struct server *server,
|
||||||
struct view *closest_view = NULL;
|
struct view *closest_view = NULL;
|
||||||
int min_distance = INT_MAX;
|
int min_distance = INT_MAX;
|
||||||
for_each_view(v, &server->views,
|
for_each_view(v, &server->views,
|
||||||
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE) {
|
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE) {
|
||||||
if (v->minimized) {
|
if (v->minimized) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
@ -770,9 +770,9 @@ actions_run(struct view *activator, struct server *server,
|
||||||
dy = v->current.y - view->current.y;
|
dy = v->current.y - view->current.y;
|
||||||
distance = dx * dx + dy * dy;
|
distance = dx * dx + dy * dy;
|
||||||
if ((direction == VIEW_EDGE_UP && dy >= 0)
|
if ((direction == VIEW_EDGE_UP && dy >= 0)
|
||||||
|| (direction == VIEW_EDGE_LEFT && dx >= 0)
|
|| (direction == VIEW_EDGE_LEFT && dx >= 0)
|
||||||
|| (direction == VIEW_EDGE_DOWN && dy <= 0)
|
|| (direction == VIEW_EDGE_DOWN && dy <= 0)
|
||||||
|| (direction == VIEW_EDGE_RIGHT && dx <= 0)) {
|
|| (direction == VIEW_EDGE_RIGHT && dx <= 0)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (distance < min_distance) {
|
if (distance < min_distance) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue