aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:42:13 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:42:13 (GMT)
commit0689a0a4a8252d46a72048269faf00dba52a73c3 (patch)
tree451b1b6f759afdc9d0383a4bfe17e8fd5aff3110 /src/FbWinFrame.cc
parent06d696f99b276e3394aec10f52c206aec4697c76 (diff)
downloadfluxbox-0689a0a4a8252d46a72048269faf00dba52a73c3.zip
fluxbox-0689a0a4a8252d46a72048269faf00dba52a73c3.tar.bz2
move getDecoMaskFromString to FbWinFrame
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc20
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
1410int 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
1410void FbWinFrame::applyDecorations() { 1430void FbWinFrame::applyDecorations() {
1411 int grav_x=0, grav_y=0; 1431 int grav_x=0, grav_y=0;
1412 // negate gravity 1432 // negate gravity