]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
support clients which use true transparency 32-bit visuals.
[chaz/openbox] / openbox / place.c
index ad17fbd5b99a59a21bc233f4776b5212ace1d005..f9da57629a39722db7c6d9a7e881ff3ec4809acc 100644 (file)
@@ -27,7 +27,8 @@
 static Rect *pick_head(ObClient *c)
 {
     Rect *area = NULL;
-    gint i, px, py;
+    guint i;
+    gint px, py;
 
     /* try direct parent first */
     if (c->transient_for && c->transient_for != OB_TRAN_GROUP) {
@@ -61,16 +62,16 @@ static Rect *pick_head(ObClient *c)
     screen_pointer_pos(&px, &py);
 
     for (i = 0; i < screen_num_monitors; i++) {
-        area = screen_area_monitor(client->desktop, i);
+        area = screen_area_monitor(c->desktop, i);
         if (RECT_CONTAINS(*area, px, py))
             break;
     }
     if (i == screen_num_monitors)
-        area = screen_area_monitor(client->desktop, 0);    
+        area = screen_area_monitor(c->desktop, 0);    
 
     /* Last resort */
     if (!area)
-        area = screen_area_monitor(client->desktop,
+        area = screen_area_monitor(c->desktop,
                                    g_random_int_range(0, screen_num_monitors));
 
     return area;
@@ -220,7 +221,6 @@ typedef enum
 static gboolean place_smart(ObClient *client, gint *x, gint *y,
                             ObSmartType type)
 {
-    guint i;
     gboolean ret = FALSE;
     GSList *spaces = NULL, *sit;
     GList *it;
@@ -320,7 +320,6 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y,
 
 static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
 {
-    guint i;
     gint l, r, t, b;
     gint px, py;
     Rect *area;
This page took 0.021257 seconds and 4 git commands to generate.