diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc index df08744..1b3ef2f 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -497,7 +497,7 @@ void FluxboxWindow::init() { | |||
497 | m_client->transientFor()->fbwindow() != this) | 497 | m_client->transientFor()->fbwindow() != this) |
498 | layerItem().setLayer(m_client->transientFor()->fbwindow()->layerItem().getLayer()); | 498 | layerItem().setLayer(m_client->transientFor()->fbwindow()->layerItem().getLayer()); |
499 | else // if no parent then set default layer | 499 | else // if no parent then set default layer |
500 | moveToLayer(m_layernum); | 500 | moveToLayer(m_layernum, m_layernum != ::Layer::NORMAL); |
501 | #ifdef DEBUG | 501 | #ifdef DEBUG |
502 | cerr<<"FluxboxWindow::init("<<title()<<") transientFor: "<< | 502 | cerr<<"FluxboxWindow::init("<<title()<<") transientFor: "<< |
503 | m_client->transientFor()<<endl; | 503 | m_client->transientFor()<<endl; |
@@ -1934,7 +1934,7 @@ void FluxboxWindow::lowerLayer() { | |||
1934 | } | 1934 | } |
1935 | 1935 | ||
1936 | 1936 | ||
1937 | void FluxboxWindow::moveToLayer(int layernum) { | 1937 | void FluxboxWindow::moveToLayer(int layernum, bool force) { |
1938 | #ifdef DEBUG | 1938 | #ifdef DEBUG |
1939 | cerr<<"FluxboxWindow("<<title()<<")::moveToLayer("<<layernum<<")"<<endl; | 1939 | cerr<<"FluxboxWindow("<<title()<<")::moveToLayer("<<layernum<<")"<<endl; |
1940 | #endif // DEBUG | 1940 | #endif // DEBUG |
@@ -1948,7 +1948,7 @@ void FluxboxWindow::moveToLayer(int layernum) { | |||
1948 | if (!m_initialized) | 1948 | if (!m_initialized) |
1949 | m_layernum = layernum; | 1949 | m_layernum = layernum; |
1950 | 1950 | ||
1951 | if (m_layernum == layernum) | 1951 | if (m_layernum == layernum && !force) |
1952 | return; | 1952 | return; |
1953 | 1953 | ||
1954 | // get root window | 1954 | // get root window |
@@ -1963,9 +1963,9 @@ void FluxboxWindow::moveToLayer(int layernum) { | |||
1963 | 1963 | ||
1964 | if (!win->isIconic()) { | 1964 | if (!win->isIconic()) { |
1965 | if (layernum > m_layernum) | 1965 | if (layernum > m_layernum) |
1966 | screen().updateNetizenWindowRaise(client->window()); | ||
1967 | else | ||
1968 | screen().updateNetizenWindowLower(client->window()); | 1966 | screen().updateNetizenWindowLower(client->window()); |
1967 | else | ||
1968 | screen().updateNetizenWindowRaise(client->window()); | ||
1969 | } | 1969 | } |
1970 | win->layerItem().moveToLayer(layernum); | 1970 | win->layerItem().moveToLayer(layernum); |
1971 | // remember number just in case a transient happens to revisit this window | 1971 | // remember number just in case a transient happens to revisit this window |