all repos — fluxbox @ dc5a105c3e79e8ede296e22217e7406cf24e9495

custom fork of the fluxbox windowmanager

fixed code duplication
Mathias Gumz akira at fluxbox dot org
commit

dc5a105c3e79e8ede296e22217e7406cf24e9495

parent

7a149626e60ef089ab3dcdd9b4fceb07250f8e13

1 files changed, 1 insertions(+), 5 deletions(-)

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

@@ -104,11 +104,7 @@ if (label == "tab")

return DECOR_TAB; int mask = -1; - int tmp; - errno = 0; - tmp = strtol(str_label.c_str(), NULL, 0); - if (errno == 0) - mask = tmp; + FbTk::StringUtil::extractNumber(str_label, mask); return mask; }