From 56d98824e3bc7caaf117e78ca47c689fcefe0c5b Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 10 Feb 2016 15:29:21 +0100 Subject: [PATCH] window layouter: reset drag state when finalized This patch resets the part of the window state that is responsible the dragging of window controls once the drag operation is finalized. Without it, the window was wrongly positioned when leaving the maximized state after a previous resize operation. --- repos/gems/src/app/floating_window_layouter/window.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/repos/gems/src/app/floating_window_layouter/window.h b/repos/gems/src/app/floating_window_layouter/window.h index 158d33c543..19c3276ccb 100644 --- a/repos/gems/src/app/floating_window_layouter/window.h +++ b/repos/gems/src/app/floating_window_layouter/window.h @@ -308,8 +308,12 @@ class Floating_window_layouter::Window : public List::Element void finalize_drag_operation() { - _requested_size = _geometry.area(); - _is_dragged = false; + _requested_size = _geometry.area(); + _is_dragged = false; + _drag_left_border = false; + _drag_right_border = false; + _drag_top_border = false; + _drag_bottom_border = false; } void topped() { _topped_cnt++; }