all repos — openbox @ 5b0751d51efddc14176734ab6740ecf9400dbaa8

openbox fork - make it a bit more like ryudo

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.
Dana Jansens danakj@orodu.net
commit

5b0751d51efddc14176734ab6740ecf9400dbaa8

parent

0a9da781402101b450b575c9ce0b20e651aa27a3

2 files changed, 11 insertions(+), 4 deletions(-)

jump to
M src/Basemenu.ccsrc/Basemenu.cc

@@ -614,7 +614,14 @@ style->d_text)));

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;
M src/Screen.ccsrc/Screen.cc

@@ -231,7 +231,7 @@

xatom->setValue(getRootWindow(), XAtom::net_current_desktop, XAtom::cardinal, 0); //first workspace - //workspacemenu->setItemSelected(2, True); + workspacemenu->setItemSelected(2, True); toolbar = new Toolbar(this);

@@ -1063,14 +1063,14 @@ // when we switch workspaces, unfocus whatever was focused

blackbox->setFocusedWindow((BlackboxWindow *) 0); current_workspace->hideAll(); - //workspacemenu->setItemSelected(current_workspace->getID() + 2, False); + workspacemenu->setItemSelected(current_workspace->getID() + 2, False); current_workspace = getWorkspace(id); xatom->setValue(getRootWindow(), XAtom::net_current_desktop, XAtom::cardinal, id); - //workspacemenu->setItemSelected(current_workspace->getID() + 2, True); + workspacemenu->setItemSelected(current_workspace->getID() + 2, True); toolbar->redrawWorkspaceLabel(True); current_workspace->showAll();