mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
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:
parent
2936cbebfd
commit
56d98824e3
@ -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++; }
|
||||
|
Loading…
Reference in New Issue
Block a user