diff options
author | markt <markt> | 2007-03-03 23:27:16 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-03 23:27:16 (GMT) |
commit | 9477af82a5835b7336fec8879967abb67f3bd848 (patch) | |
tree | 1a6d8df615791146b98434d254062a155a8a515f /src/Window.cc | |
parent | d03f39f83650d401b400a2fa3086104d0f4da7a2 (diff) | |
download | fluxbox-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.cc | 4 |
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; |