From 74eb584a312aba21b21eccb6c49ade1571aa3740 Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 24 Oct 2007 07:35:25 +0000 Subject: reenabled raising window if window was moved by mouse by 0 pixels --- ChangeLog | 3 +++ src/Window.cc | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index c18c86c..61183e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0.1: +*07/10/24: + * Reenabled raising window if window was moved by mouse by 0 pixels (Mathias) + Window.cc *07/10/23: * Adding/removing workspaces wasn't updating menu (Mark) Screen.cc diff --git a/src/Window.cc b/src/Window.cc index bd39855..fe3a43b 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -3159,6 +3159,15 @@ void FluxboxWindow::stopMoving(bool interrupted) { fluxbox->maskWindowEvents(0, 0); + // if no real movement happend -> raise if clickrais is disabled + if (m_last_move_x - frame().x() == 0 && + m_last_move_y - frame().y() == 0 && + !screen().clickRaises()) { + + raise(); + } + + if (! screen().doOpaqueMove()) { parent().drawRectangle(screen().rootTheme().opGC(), m_last_move_x, m_last_move_y, -- cgit v0.11.2