mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
window layouter: resize resizeable windows only
Initiate the drag operation of a resize handle only if the client is known to be resizable. Issue #3303
This commit is contained in:
parent
070a24956d
commit
7b1e3a9d63
@ -187,21 +187,24 @@ class Window_layouter::Window : public List_model<Window>::Element
|
|||||||
{
|
{
|
||||||
_dragged_element = element;
|
_dragged_element = element;
|
||||||
|
|
||||||
_drag_left_border = (element.type == Window::Element::LEFT)
|
if (_resizeable) {
|
||||||
|| (element.type == Window::Element::TOP_LEFT)
|
|
||||||
|| (element.type == Window::Element::BOTTOM_LEFT);
|
|
||||||
|
|
||||||
_drag_right_border = (element.type == Window::Element::RIGHT)
|
_drag_left_border = (element.type == Window::Element::LEFT)
|
||||||
|| (element.type == Window::Element::TOP_RIGHT)
|
|| (element.type == Window::Element::TOP_LEFT)
|
||||||
|| (element.type == Window::Element::BOTTOM_RIGHT);
|
|| (element.type == Window::Element::BOTTOM_LEFT);
|
||||||
|
|
||||||
_drag_top_border = (element.type == Window::Element::TOP)
|
_drag_right_border = (element.type == Window::Element::RIGHT)
|
||||||
|| (element.type == Window::Element::TOP_LEFT)
|
|| (element.type == Window::Element::TOP_RIGHT)
|
||||||
|| (element.type == Window::Element::TOP_RIGHT);
|
|| (element.type == Window::Element::BOTTOM_RIGHT);
|
||||||
|
|
||||||
_drag_bottom_border = (element.type == Window::Element::BOTTOM)
|
_drag_top_border = (element.type == Window::Element::TOP)
|
||||||
|| (element.type == Window::Element::BOTTOM_LEFT)
|
|| (element.type == Window::Element::TOP_LEFT)
|
||||||
|| (element.type == Window::Element::BOTTOM_RIGHT);
|
|| (element.type == Window::Element::TOP_RIGHT);
|
||||||
|
|
||||||
|
_drag_bottom_border = (element.type == Window::Element::BOTTOM)
|
||||||
|
|| (element.type == Window::Element::BOTTOM_LEFT)
|
||||||
|
|| (element.type == Window::Element::BOTTOM_RIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
_orig_geometry = _geometry;
|
_orig_geometry = _geometry;
|
||||||
_drag_geometry = _geometry;
|
_drag_geometry = _geometry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user