X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FBasemenu.cc;h=228c43c7158cfdb3c930e9bc999a06e79c703a64;hb=7972a75e4615da9a62e6be8c44880f5a594a2519;hp=fcd6931e6eba5dff03dbd4012468d59f131b2b3a;hpb=0a9da781402101b450b575c9ce0b20e651aa27a3;p=chaz%2Fopenbox diff --git a/src/Basemenu.cc b/src/Basemenu.cc index fcd6931e..228c43c7 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -614,7 +614,14 @@ void Basemenu::drawItem(int index, bool highlight, bool clear, XPoint pts[6]; - pts[0].x = sel_x + 0; + // put the check mark on the opposite side of the menu + int x = sel_x; + if (screen->getMenuStyle()->bullet_pos == Right) + x -= (menu.item_w - menu.item_h - menu.bevel_w); + else + x += (menu.item_w - menu.item_h - menu.bevel_w); + + pts[0].x = x + 0; pts[0].y = sel_y + 2; pts[1].x = 0;