added literal for layer, patch from Mathias Gumz

This commit is contained in:
fluxgen 2004-08-10 18:35:05 +00:00
parent c1b226b7ff
commit 1a02439df1

View file

@ -21,7 +21,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Remember.cc,v 1.38 2004/06/07 21:16:13 fluxgen Exp $
// $Id: Remember.cc,v 1.39 2004/08/10 18:35:05 fluxgen Exp $
#include "Remember.hh"
#include "ClientPattern.hh"
@ -68,10 +68,6 @@
using namespace std;
#ifndef MAXPATHLEN
#define MAXPATHLEN 255
#endif // MAXPATHLEN
namespace {
class RememberMenuItem : public FbTk::MenuItem {
@ -330,8 +326,24 @@ int Remember::parseApp(ifstream &file, Application &app, string *first_line) {
app.rememberWorkspace(w);
} else if (str_key == "Layer") {
unsigned int l;
if (str_label == "DESKTOP") {
l = Fluxbox::instance()->getDesktopLayer();
} else if (str_label == "BOTTOM") {
l = Fluxbox::instance()->getBottomLayer();
} else if (str_label == "NORMAL") {
l = Fluxbox::instance()->getNormalLayer();
} else if (str_label == "TOP") {
l = Fluxbox::instance()->getNormalLayer();
} else if (str_label == "DOCK") {
l = Fluxbox::instance()->getDockLayer();
} else if (str_label == "ABOVEDOCK") {
l = Fluxbox::instance()->getAboveDockLayer();
} else if (str_label == "MENU") {
l = Fluxbox::instance()->getMenuLayer();
} else {
FB_istringstream iss(str_label.c_str());
iss >> l;
}
app.rememberLayer(l);
} else if (str_key == "Dimensions") {
unsigned int h,w;