diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-18 20:00:01 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-18 20:00:01 (GMT) |
commit | ebec87741a4e801730a6b35ccc5e3ecc0b9e3796 (patch) | |
tree | 4f98552d990c31ad7fcd7da81896f2478c86ccd7 | |
parent | 98c5cea5f59180a80d322cb9e45d0d9ea5381444 (diff) | |
download | fluxbox_paul-ebec87741a4e801730a6b35ccc5e3ecc0b9e3796.zip fluxbox_paul-ebec87741a4e801730a6b35ccc5e3ecc0b9e3796.tar.bz2 |
open transient windows on same workspace as parent
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/Window.cc | 10 |
2 files changed, 12 insertions, 0 deletions
@@ -1,6 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.0.1: | 2 | Changes for 1.0.1: |
3 | *07/12/18: | 3 | *07/12/18: |
4 | * Open transient windows on same workspace as parent (thanks Sascha Hunold) | ||
5 | Window.cc | ||
4 | * Holding control while clicking on a menu item will now keep the menu open (Mark) | 6 | * Holding control while clicking on a menu item will now keep the menu open (Mark) |
5 | FbTk/Menu.cc MenuItem.cc/hh | 7 | FbTk/Menu.cc MenuItem.cc/hh |
6 | *07/12/17: | 8 | *07/12/17: |
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; |