aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 65afd67..801a97c 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -498,6 +498,16 @@ void FluxboxWindow::init() {
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, m_layernum != ::Layer::NORMAL); 500 moveToLayer(m_layernum, m_layernum != ::Layer::NORMAL);
501
502 // transients should be on the same workspace as parent
503 if (m_client->isTransient() &&
504 m_client->transientFor()->fbwindow() &&
505 m_client->transientFor()->fbwindow() != this) {
506 m_workspace_number =
507 m_client->transientFor()->fbwindow()->workspaceNumber();
508 }
509
510
501#ifdef DEBUG 511#ifdef DEBUG
502 cerr<<"FluxboxWindow::init("<<title()<<") transientFor: "<< 512 cerr<<"FluxboxWindow::init("<<title()<<") transientFor: "<<
503 m_client->transientFor()<<endl; 513 m_client->transientFor()<<endl;