diff options
author | markt <markt> | 2007-04-01 21:42:01 (GMT) |
---|---|---|
committer | markt <markt> | 2007-04-01 21:42:01 (GMT) |
commit | 48f761f9816f0f11e05dcc4e8f5ac506328e1683 (patch) | |
tree | cd93a828fb6db8eb1eb69db00be7ad37b97bf96a /src/FbTk/Resource.cc | |
parent | c883e477c547b14aae029b5376c1145a8439fcea (diff) | |
download | fluxbox_pavel-48f761f9816f0f11e05dcc4e8f5ac506328e1683.zip fluxbox_pavel-48f761f9816f0f11e05dcc4e8f5ac506328e1683.tar.bz2 |
fixed problem with creating windows in iconic state
Diffstat (limited to 'src/FbTk/Resource.cc')
-rw-r--r-- | src/FbTk/Resource.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Resource.cc b/src/FbTk/Resource.cc index 5d2dc3b..cb45eac 100644 --- a/src/FbTk/Resource.cc +++ b/src/FbTk/Resource.cc | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "XrmDatabaseHelper.hh" | 24 | #include "XrmDatabaseHelper.hh" |
25 | #include "Resource.hh" | 25 | #include "Resource.hh" |
26 | #include "I18n.hh" | 26 | #include "I18n.hh" |
27 | #include "StringUtil.hh" | ||
27 | 28 | ||
28 | #include <iostream> | 29 | #include <iostream> |
29 | #ifdef HAVE_CASSERT | 30 | #ifdef HAVE_CASSERT |
@@ -61,7 +62,7 @@ bool ResourceManager::m_init = false; | |||
61 | @return true on success else false | 62 | @return true on success else false |
62 | */ | 63 | */ |
63 | bool ResourceManager::load(const char *filename) { | 64 | bool ResourceManager::load(const char *filename) { |
64 | m_filename = filename; | 65 | m_filename = StringUtil::expandFilename(filename).c_str(); |
65 | 66 | ||
66 | // force reload (lock will ensure it exists) | 67 | // force reload (lock will ensure it exists) |
67 | if (m_database) { | 68 | if (m_database) { |
@@ -106,6 +107,7 @@ bool ResourceManager::load(const char *filename) { | |||
106 | */ | 107 | */ |
107 | bool ResourceManager::save(const char *filename, const char *mergefilename) { | 108 | bool ResourceManager::save(const char *filename, const char *mergefilename) { |
108 | assert(filename); | 109 | assert(filename); |
110 | filename = StringUtil::expandFilename(filename).c_str(); | ||
109 | 111 | ||
110 | // empty database | 112 | // empty database |
111 | XrmDatabaseHelper database; | 113 | XrmDatabaseHelper database; |