summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-01-11 18:12:01 +0100
committerMikael Magnusson <mikachu@gmail.com>2013-04-17 13:23:19 +0200
commitf6fb70a4b95d0289aa642bc4c2dd0fba31511e94 (patch)
tree3065029043d5648c7819a563a71ed044c515b6e7 /openbox
parent782b2864b1cc5ffab426dfb784a973576a98de18 (diff)
Remove some evil tabs
Diffstat (limited to 'openbox')
-rw-r--r--openbox/moveresize.c26
-rw-r--r--openbox/place_overlap.c54
2 files changed, 40 insertions, 40 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 1625ccf0..2d0dc3ac 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -582,19 +582,19 @@ static void edge_warp_move_ptr(void)
a = screen_physical_area_all_monitors();
switch (edge_warp_dir) {
- case OB_DIRECTION_NORTH:
- y = a->height - 1;
- break;
- case OB_DIRECTION_EAST:
- x = a->x;
- break;
- case OB_DIRECTION_SOUTH:
- y = a->y;
- break;
- case OB_DIRECTION_WEST:
- x = a->width - 1;
- break;
- default:
+ case OB_DIRECTION_NORTH:
+ y = a->height - 1;
+ break;
+ case OB_DIRECTION_EAST:
+ x = a->x;
+ break;
+ case OB_DIRECTION_SOUTH:
+ y = a->y;
+ break;
+ case OB_DIRECTION_WEST:
+ x = a->width - 1;
+ break;
+ default:
g_assert_not_reached();
}
diff --git a/openbox/place_overlap.c b/openbox/place_overlap.c
index ef73bd8d..5cca1bc2 100644
--- a/openbox/place_overlap.c
+++ b/openbox/place_overlap.c
@@ -43,33 +43,33 @@ void place_overlap_find_least_placement(const Rect* client_rects,
int overlap = G_MAXINT;
int max_edges = 2 * (n_client_rects + 1);
- int x_edges[max_edges];
- int y_edges[max_edges];
- make_grid(client_rects, n_client_rects, bound,
- x_edges, y_edges, max_edges);
- int i;
- for (i = 0; i < max_edges; ++i) {
- if (x_edges[i] == G_MAXINT)
- break;
- int j;
- for (j = 0; j < max_edges; ++j) {
- if (y_edges[j] == G_MAXINT)
- break;
- Point grid_point = {.x = x_edges[i], .y = y_edges[j]};
- Point best_top_left;
- int this_overlap =
- best_direction(&grid_point, client_rects, n_client_rects,
- bound, req_size, &best_top_left);
- if (this_overlap < overlap) {
- overlap = this_overlap;
- *result = best_top_left;
- }
- if (overlap == 0)
- break;
- }
- if (overlap == 0)
- break;
- }
+ int x_edges[max_edges];
+ int y_edges[max_edges];
+ make_grid(client_rects, n_client_rects, bound,
+ x_edges, y_edges, max_edges);
+ int i;
+ for (i = 0; i < max_edges; ++i) {
+ if (x_edges[i] == G_MAXINT)
+ break;
+ int j;
+ for (j = 0; j < max_edges; ++j) {
+ if (y_edges[j] == G_MAXINT)
+ break;
+ Point grid_point = {.x = x_edges[i], .y = y_edges[j]};
+ Point best_top_left;
+ int this_overlap =
+ best_direction(&grid_point, client_rects, n_client_rects,
+ bound, req_size, &best_top_left);
+ if (this_overlap < overlap) {
+ overlap = this_overlap;
+ *result = best_top_left;
+ }
+ if (overlap == 0)
+ break;
+ }
+ if (overlap == 0)
+ break;
+ }
}
static int compare_ints(const void* a, const void* b)