aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-03-03 23:27:16 (GMT)
committermarkt <markt>2007-03-03 23:27:16 (GMT)
commit9477af82a5835b7336fec8879967abb67f3bd848 (patch)
tree1a6d8df615791146b98434d254062a155a8a515f /src/Window.cc
parentd03f39f83650d401b400a2fa3086104d0f4da7a2 (diff)
downloadfluxbox-9477af82a5835b7336fec8879967abb67f3bd848.zip
fluxbox-9477af82a5835b7336fec8879967abb67f3bd848.tar.bz2
removed session.numLayers resource, as it was useless and caused segfaults
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 4e02bfe..3d0db79 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1922,8 +1922,8 @@ void FluxboxWindow::moveToLayer(int layernum, bool force) {
1922 // don't let it set its layer into menu area 1922 // don't let it set its layer into menu area
1923 if (layernum <= ::Layer::MENU) 1923 if (layernum <= ::Layer::MENU)
1924 layernum = ::Layer::MENU + 1; 1924 layernum = ::Layer::MENU + 1;
1925 else if (layernum >= Fluxbox::instance()->getNumberOfLayers()) 1925 else if (layernum >= ::Layer::NUM_LAYERS)
1926 layernum = Fluxbox::instance()->getNumberOfLayers()-1; 1926 layernum = ::Layer::NUM_LAYERS - 1;
1927 1927
1928 if (!m_initialized) 1928 if (!m_initialized)
1929 m_layernum = layernum; 1929 m_layernum = layernum;