surface/wayland: conform to small surface requirements

do not stretch small surfaces, instead center them if they fit.
This commit is contained in:
Vaxry
2023-10-20 20:15:41 +01:00
parent bab2f6a664
commit 7f35f33b4c
7 changed files with 74 additions and 12 deletions

View File

@@ -203,6 +203,7 @@ class CWindow {
// for not spamming the protocols
Vector2D m_vReportedPosition;
Vector2D m_vReportedSize;
Vector2D m_vPendingReportedSize;
// for restoring floating statuses
Vector2D m_vLastFloatingSize;