fixed slitlist loading bug, the list was just reading until space, but now it reads the entire line. And a typeo on XINERAMA
fluxgen fluxgen
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
src/Slit.cc
→
src/Slit.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.15 2002/05/29 19:10:04 fluxgen Exp $ +// $Id: Slit.cc,v 1.16 2002/07/19 16:10:18 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE@@ -526,7 +526,7 @@ int head_x = 0,
head_y = 0, head_w, head_h; -#ifdef XINERMA +#ifdef XINERAMA if (screen->hasXinerama()) { unsigned int head = screen->getSlitOnHead();@@ -785,7 +785,7 @@ std::ifstream file(fluxbox->getSlitlistFilename().c_str());
std::string name; while (! file.eof()) { name = ""; - file >> name; + std::getline(file, name); // get the entire line if (name.size() > 0) { SlitClient *client = new SlitClient(name.c_str()); clientList.push_back(client);@@ -805,6 +805,7 @@ for (; it != it_end; ++it) {
name = (*it)->match_name; if (name != prevName) file << name.c_str() << std::endl; + prevName = name; } }