all repos — openbox @ 0a9da781402101b450b575c9ce0b20e651aa27a3

openbox fork - make it a bit more like ryudo

change the color used for the checkmark. match the text. dont check the current workspace in the workspace menu.
Dana Jansens danakj@orodu.net
commit

0a9da781402101b450b575c9ce0b20e651aa27a3

parent

f020fb586bf8d2570f8064f34200bdc8a17373a6

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

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

@@ -607,6 +607,11 @@ hilite_x, hilite_y, hilite_w, hilite_h);

} if (dosel && item->isSelected()) { + // match the text color + BPen pen((highlight ? style->h_text : + (item->isEnabled() ? style->f_text : + style->d_text))); + XPoint pts[6]; pts[0].x = sel_x + 0;

@@ -621,13 +626,14 @@

pts[3].x = 5; pts[3].y = -5; + pts[4].x = 0; pts[4].y = -3; pts[5].x = -5; pts[5].y = 5; - XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Complex, + XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Nonconvex, CoordModePrevious); }
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();