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.
This commit is contained in:
Norman Feske 2016-02-10 15:29:21 +01:00
parent 2936cbebfd
commit 56d98824e3

View File

@ -308,8 +308,12 @@ class Floating_window_layouter::Window : public List<Window>::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++; }