mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
window layouter: limit maximized size to client
This patch constraints the window size of the generated layout to the minimum of the client's real window size and the wanted window size (both may differ when resizing or maximizing windows).
This commit is contained in:
parent
08bb689ae7
commit
4b4247f412
@ -366,8 +366,8 @@ class Window_layouter::Window : public List_model<Window>::Element
|
||||
|
||||
xml.attribute("xpos", rect.x1());
|
||||
xml.attribute("ypos", rect.y1());
|
||||
xml.attribute("width", rect.w());
|
||||
xml.attribute("height", rect.h());
|
||||
xml.attribute("width", min(rect.w(), _client_size.w()));
|
||||
xml.attribute("height", min(rect.h(), _client_size.h()));
|
||||
|
||||
if (_focused)
|
||||
xml.attribute("focused", "yes");
|
||||
|
Loading…
Reference in New Issue
Block a user