all repos — fluxbox @ 521932e0a2885749e8e3fcf0254d6ff9180adf11

custom fork of the fluxbox windowmanager

move client to drop zone when detaching client to root window
fluxgen fluxgen
commit

521932e0a2885749e8e3fcf0254d6ff9180adf11

parent

4e0150bf46be23b51155d3036739528aa104810e

1 files changed, 11 insertions(+), 3 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.252 2003/12/12 14:59:16 fluxgen Exp $ +// $Id: Window.cc,v 1.253 2003/12/14 01:06:22 fluxgen Exp $ #include "Window.hh"

@@ -1288,7 +1288,7 @@ (*client_it)->show();

(*client_it)->setEventMask(PropertyChangeMask | StructureNotifyMask | FocusChangeMask); } - frame().show(); + show(); if (was_iconic && screen().doFocusNew()) setInputFocus();

@@ -3008,9 +3008,17 @@ attach_to_win = client->fbwindow();

if (attach_to_win != this && attach_to_win != 0) { + attach_to_win->attachClient(*m_attaching_tab); - } else if (attach_to_win != this) { // disconnect client if we didn't drop on a window + + } else if (attach_to_win != this) { + // disconnect client if we didn't drop on a window + WinClient &client = *m_attaching_tab; detachClient(*m_attaching_tab); + // move to drop zone + if (client.m_win != 0) + client.m_win->move(x, y); + } }