diff options
-rw-r--r-- | src/WindowState.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/WindowState.cc b/src/WindowState.cc index d062907..6632b66 100644 --- a/src/WindowState.cc +++ b/src/WindowState.cc | |||
@@ -104,11 +104,7 @@ int WindowState::getDecoMaskFromString(const std::string &str_label) { | |||
104 | return DECOR_TAB; | 104 | return DECOR_TAB; |
105 | 105 | ||
106 | int mask = -1; | 106 | int mask = -1; |
107 | int tmp; | 107 | FbTk::StringUtil::extractNumber(str_label, mask); |
108 | errno = 0; | ||
109 | tmp = strtol(str_label.c_str(), NULL, 0); | ||
110 | if (errno == 0) | ||
111 | mask = tmp; | ||
112 | 108 | ||
113 | return mask; | 109 | return mask; |
114 | } | 110 | } |