Pass the GravityPoint as const* instead of by value
[mikachu/openbox.git] / openbox / actions / showmenu.c
index 13afe22..8151db5 100644 (file)
@@ -115,7 +115,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
 
     /* you cannot call ShowMenu from inside a menu */
     if (data->uact != OB_USER_ACTION_MENU_SELECTION && o->name)
 
     /* you cannot call ShowMenu from inside a menu */
     if (data->uact != OB_USER_ACTION_MENU_SELECTION && o->name)
-        menu_show(o->name, position, monitor,
+        menu_show(o->name, &position, monitor,
                   data->button != 0, o->use_position, data->client);
 
     return FALSE;
                   data->button != 0, o->use_position, data->client);
 
     return FALSE;