diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:36:53 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:37:33 -0500 |
| commit | aeac3b735bf4caf7c014c58c1271b2cbe5aedd80 (patch) | |
| tree | f727f835b505a3676c081698c5a77458b0e9ec1c /openbox/place.c | |
| parent | e61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c (diff) | |
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible
Diffstat (limited to 'openbox/place.c')
| -rw-r--r-- | openbox/place.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openbox/place.c b/openbox/place.c index 8292d6a2..836c215d 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -107,9 +107,8 @@ static Rect **pick_head(ObClient *c) screen_pointer_pos(&px, &py); for (i = 0; i < screen_num_monitors; i++) { - Rect *monitor = screen_physical_area_monitor(i); + Rect const *monitor = screen_physical_area_monitor(i); gboolean contain = RECT_CONTAINS(*monitor, px, py); - g_free(monitor); if (contain) { add_choice(choice, i); ob_debug("placement adding choice %d for mouse pointer", i); |
