diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 07:05:21 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 07:05:21 (GMT) |
commit | 24bea22035e79c17fa6b6fdcd60f88e4eac467d8 (patch) | |
tree | e0cae9682c279558cbaa106d0572118ee76652db /src/Remember.cc | |
parent | 9d71ad9c1477875001ecd19eb4cbbe1c4ba4eb40 (diff) | |
download | fluxbox_pavel-24bea22035e79c17fa6b6fdcd60f88e4eac467d8.zip fluxbox_pavel-24bea22035e79c17fa6b6fdcd60f88e4eac467d8.tar.bz2 |
add SetLayer key command
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index ff0094c..f76fe9b 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -411,24 +411,8 @@ int Remember::parseApp(ifstream &file, Application &app, string *first_line) { | |||
411 | else | 411 | else |
412 | had_error = true; | 412 | had_error = true; |
413 | } else if (strcasecmp(str_key.c_str(), "Layer") == 0) { | 413 | } else if (strcasecmp(str_key.c_str(), "Layer") == 0) { |
414 | unsigned int l; | 414 | int l = Layer::getNumFromString(str_label); |
415 | if (strcasecmp(str_label.c_str(), "DESKTOP") == 0) { | 415 | had_error = (l == -1); |
416 | l = Layer::DESKTOP; | ||
417 | } else if (strcasecmp(str_label.c_str(), "BOTTOM") == 0) { | ||
418 | l = Layer::BOTTOM; | ||
419 | } else if (strcasecmp(str_label.c_str(), "NORMAL") == 0) { | ||
420 | l = Layer::NORMAL; | ||
421 | } else if (strcasecmp(str_label.c_str(), "TOP") == 0) { | ||
422 | l = Layer::TOP; | ||
423 | } else if (strcasecmp(str_label.c_str(), "DOCK") == 0) { | ||
424 | l = Layer::DOCK; | ||
425 | } else if (strcasecmp(str_label.c_str(), "ABOVEDOCK") == 0) { | ||
426 | l = Layer::ABOVE_DOCK; | ||
427 | } else if (strcasecmp(str_label.c_str(), "MENU") == 0) { | ||
428 | l = Layer::MENU; | ||
429 | } else if (!getuint(str_label.c_str(), l)) { | ||
430 | had_error = true; | ||
431 | } | ||
432 | if (!had_error) | 416 | if (!had_error) |
433 | app.rememberLayer(l); | 417 | app.rememberLayer(l); |
434 | } else if (strcasecmp(str_key.c_str(), "Dimensions") == 0) { | 418 | } else if (strcasecmp(str_key.c_str(), "Dimensions") == 0) { |