diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-18 05:14:18 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-18 05:14:18 +0000 |
| commit | 5b0751d51efddc14176734ab6740ecf9400dbaa8 (patch) | |
| tree | cc5ef109fc96c29e111399e89799b662b7305910 /src/Basemenu.cc | |
| parent | 0a9da781402101b450b575c9ce0b20e651aa27a3 (diff) | |
move the checkmarks to the opposite side of the bullets. This means they still can be used in the workspace menu for the focused workspace.
Diffstat (limited to 'src/Basemenu.cc')
| -rw-r--r-- | src/Basemenu.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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; |
