diff options
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 3a3dc86..becbe36 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -1407,6 +1407,26 @@ void FbWinFrame::applyTabContainer() { | |||
1407 | } | 1407 | } |
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | int FbWinFrame::getDecoMaskFromString(const string &str_label) { | ||
1411 | if (strcasecmp(str_label.c_str(), "NONE") == 0) | ||
1412 | return DECOR_NONE; | ||
1413 | if (strcasecmp(str_label.c_str(), "NORMAL") == 0) | ||
1414 | return DECOR_NORMAL; | ||
1415 | if (strcasecmp(str_label.c_str(), "TINY") == 0) | ||
1416 | return DECOR_TINY; | ||
1417 | if (strcasecmp(str_label.c_str(), "TOOL") == 0) | ||
1418 | return DECOR_TOOL; | ||
1419 | if (strcasecmp(str_label.c_str(), "BORDER") == 0) | ||
1420 | return DECOR_BORDER; | ||
1421 | if (strcasecmp(str_label.c_str(), "TAB") == 0) | ||
1422 | return DECOR_TAB; | ||
1423 | int mask = -1; | ||
1424 | if (str_label.size() > 1 && str_label[0] == '0' && str_label[1] == 'x' || | ||
1425 | str_label.size() > 0 && isdigit(str_label[0])) | ||
1426 | mask = strtol(str_label.c_str(), NULL, 0); | ||
1427 | return mask; | ||
1428 | } | ||
1429 | |||
1410 | void FbWinFrame::applyDecorations() { | 1430 | void FbWinFrame::applyDecorations() { |
1411 | int grav_x=0, grav_y=0; | 1431 | int grav_x=0, grav_y=0; |
1412 | // negate gravity | 1432 | // negate gravity |