]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
fix another crash
[chaz/openbox] / openbox / frame.c
index 65d1404af9d11bb967c4fd05f35b5de0fb08c688..6aae7a2a15c8d56738ac80df9973b5bff93eff90 100644 (file)
@@ -1577,10 +1577,12 @@ static gboolean frame_animate_iconify(gpointer p)
 
     if (self->client->icon_geometry.width == 0) {
         /* there is no icon geometry set so just go straight down */
-        Rect *a = screen_physical_area();
+        Rect *a = screen_physical_area_monitor
+            (screen_find_monitor(&self->area));
         iconx = self->area.x + self->area.width / 2 + 32;
         icony = a->y + a->width;
         iconw = 64;
+        g_free(a);
     } else {
         iconx = self->client->icon_geometry.x;
         icony = self->client->icon_geometry.y;
This page took 0.021989 seconds and 4 git commands to generate.