From ebec87741a4e801730a6b35ccc5e3ecc0b9e3796 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Tue, 18 Dec 2007 12:00:01 -0800 Subject: open transient windows on same workspace as parent --- ChangeLog | 2 ++ src/Window.cc | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index a43f8b0..b5fdc78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: 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() { 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("<transientFor()<