]> Dogcows Code - chaz/openbox/blobdiff - src/Basemenu.cc
fix some capitalisations
[chaz/openbox] / src / Basemenu.cc
index fcd6931e6eba5dff03dbd4012468d59f131b2b3a..228c43c7158cfdb3c930e9bc999a06e79c703a64 100644 (file)
@@ -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;
This page took 0.027641 seconds and 4 git commands to generate.