all repos — openbox @ b18959e1bda52f807f62c95772c69ce3005215a7

openbox fork - make it a bit more like ryudo

provide access to the desktop names
Dana Jansens danakj@orodu.net
commit

b18959e1bda52f807f62c95772c69ce3005215a7

parent

d993bcd9ad035a4f38cb7a3733586ee36bf2dfc9

2 files changed, 7 insertions(+), 0 deletions(-)

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

@@ -867,6 +867,11 @@ otk::Property::atoms.net_desktop_names,

otk::Property::utf8, newnames); } +otk::ustring Screen::desktopName(unsigned int i) const +{ + if (i >= _num_desktops) return ""; + return _desktop_names[i]; +} const otk::Rect& Screen::area(unsigned int desktop) const { assert(desktop < _num_desktops || desktop == 0xffffffff);
M src/screen.hhsrc/screen.hh

@@ -224,6 +224,8 @@ If the index is too large, it is simply ignored.

*/ void setDesktopName(unsigned int i, const otk::ustring &name); + otk::ustring desktopName(unsigned int i) const; + void installColormap(bool install) const; virtual void propertyHandler(const XPropertyEvent &e);