all repos — fluxbox @ ebec87741a4e801730a6b35ccc5e3ecc0b9e3796

custom fork of the fluxbox windowmanager

open transient windows on same workspace as parent
Mark Tiefenbruck mark@fluxbox.org
commit

ebec87741a4e801730a6b35ccc5e3ecc0b9e3796

parent

98c5cea5f59180a80d322cb9e45d0d9ea5381444

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0.1: *07/12/18: + * Open transient windows on same workspace as parent (thanks Sascha Hunold) + Window.cc * Holding control while clicking on a menu item will now keep the menu open (Mark) FbTk/Menu.cc MenuItem.cc/hh *07/12/17:
M src/Window.ccsrc/Window.cc

@@ -498,6 +498,16 @@ m_client->transientFor()->fbwindow() != this)

layerItem().setLayer(m_client->transientFor()->fbwindow()->layerItem().getLayer()); else // if no parent then set default layer moveToLayer(m_layernum, m_layernum != ::Layer::NORMAL); + + // transients should be on the same workspace as parent + if (m_client->isTransient() && + m_client->transientFor()->fbwindow() && + m_client->transientFor()->fbwindow() != this) { + m_workspace_number = + m_client->transientFor()->fbwindow()->workspaceNumber(); + } + + #ifdef DEBUG cerr<<"FluxboxWindow::init("<<title()<<") transientFor: "<< m_client->transientFor()<<endl;