aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
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;