summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-02-12 14:36:53 -0500
committerDana Jansens <danakj@orodu.net>2010-02-12 14:37:33 -0500
commitaeac3b735bf4caf7c014c58c1271b2cbe5aedd80 (patch)
treef727f835b505a3676c081698c5a77458b0e9ec1c /openbox/frame.c
parente61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c (diff)
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 8835c632..a6bfaefe 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -1677,12 +1677,10 @@ 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_monitor
- (screen_find_monitor(&self->area));
+ Rect const *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;