summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-18 20:00:01 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-18 20:00:01 (GMT)
commitebec87741a4e801730a6b35ccc5e3ecc0b9e3796 (patch)
tree4f98552d990c31ad7fcd7da81896f2478c86ccd7 /src
parent98c5cea5f59180a80d322cb9e45d0d9ea5381444 (diff)
downloadfluxbox_lack-ebec87741a4e801730a6b35ccc5e3ecc0b9e3796.zip
fluxbox_lack-ebec87741a4e801730a6b35ccc5e3ecc0b9e3796.tar.bz2
open transient windows on same workspace as parent
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;