aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/afterstep-stable/files/patch-Arrange.c
blob: 4c9d2d40bd98e8b3c219097ac3004f456342680a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$FreeBSD$

--- src/Arrange/Arrange.c.orig  Wed May  4 14:15:17 2005
+++ src/Arrange/Arrange.c   Wed May  4 14:16:39 2005
@@ -457,11 +457,12 @@
 void 
 tile_windows()
 {
+   int n_groups;
    int n_windows = 0;
    iterate_asbidirlist( ArrangeState.clients_order,
                 count_managed_windows, &n_windows, NULL, False);
    
-   int n_groups = ArrangeState.clients_order->count / ArrangeState.count;
+   n_groups = ArrangeState.clients_order->count / ArrangeState.count;
    if(ArrangeState.clients_order->count % ArrangeState.count)
        n_groups++;
    
@@ -505,12 +506,11 @@
 Bool 
 cascade_window(void *data, void *aux_data)
 {
+   send_signed_data_type vals[2] ; 
+   send_signed_data_type units[2] ;    
    ASWindowData *wd = fetch_window_by_id( ((client_item *) data)->cl );
    if(wd == NULL)
        return True;
-
-   send_signed_data_type vals[2] ; 
-   send_signed_data_type units[2] ;    
 
    if(! window_is_suitable( wd ))
      return True; /* Next window please */