From 39dfb7458a75ca502fb0c18ec0f1a107f5d51249 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 6 Oct 2014 21:54:16 +0200 Subject: Pass the GravityPoint as const* instead of by value --- openbox/menuframe.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openbox/menuframe.c') diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 0c363e70..c390c078 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -232,7 +232,7 @@ void menu_frame_move(ObMenuFrame *self, gint x, gint y) XMoveWindow(obt_display, self->window, self->area.x, self->area.y); } -static void menu_frame_place_topmenu(ObMenuFrame *self, GravityPoint *pos, +static void menu_frame_place_topmenu(ObMenuFrame *self, const GravityPoint *pos, gint *x, gint *y, gint monitor, gboolean user_positioned) { @@ -997,7 +997,7 @@ static gboolean menu_frame_show(ObMenuFrame *self) return TRUE; } -gboolean menu_frame_show_topmenu(ObMenuFrame *self, GravityPoint pos, +gboolean menu_frame_show_topmenu(ObMenuFrame *self, const GravityPoint *pos, gint monitor, gboolean mouse, gboolean user_positioned) { @@ -1010,11 +1010,11 @@ gboolean menu_frame_show_topmenu(ObMenuFrame *self, GravityPoint pos, return FALSE; if (self->menu->place_func) { - x = pos.x.pos; - y = pos.y.pos; + x = pos->x.pos; + y = pos->y.pos; self->menu->place_func(self, &x, &y, mouse, self->menu->data); } else { - menu_frame_place_topmenu(self, &pos, &x, &y, monitor, + menu_frame_place_topmenu(self, pos, &x, &y, monitor, user_positioned); } -- cgit v1.2.3