summaryrefslogtreecommitdiff
path: root/openbox/prompt.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/prompt.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/prompt.c')
-rw-r--r--openbox/prompt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbox/prompt.c b/openbox/prompt.c
index b10d8a18..e73545a5 100644
--- a/openbox/prompt.c
+++ b/openbox/prompt.c
@@ -269,9 +269,8 @@ static void prompt_layout(ObPrompt *self)
b += OUTSIDE_MARGIN;
{
- Rect *area = screen_physical_area_all_monitors();
+ Rect const *area = screen_physical_area_all_monitors();
maxw = MIN(MAX_WIDTH, area->width*4/5);
- g_free(area);
}
/* find the button sizes and how much space we need for them */