X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;h=a4cb464740aa100719bc14baf17a9146456318ee;hb=64dda2375e4d01ca2e81638c1e9595cb73654883;hp=0fba250a06d1ba6215298686f150e142dadc27d9;hpb=cbbda7a363e0be925072c77b521af5546b9d5da1;p=chaz%2Fopenbox diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 0fba250a..a4cb4647 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -193,8 +193,10 @@ void menu_frame_place_topmenu(ObMenuFrame *self, gint x, gint y) x = self->client->frame->area.x + self->client->frame->size.left; y = self->client->frame->area.y + self->client->frame->size.top; } else { - x -= self->area.width / 2; - y -= ob_rr_theme->mbwidth + self->title_h; + if (config_menu_middle) { + x -= self->area.width / 2; + } + y -= self->title_h; } menu_frame_move(self, x, y); }