Merge pull request #9088 from dif-sam/patch-1

Update flags for XSetWMNormalHints
This commit is contained in:
Nikita Tsukanov
2022-10-03 23:58:05 +03:00
committed by GitHub
+1 -1
View File
@@ -302,7 +302,7 @@ namespace Avalonia.X11
min_height = min.Height min_height = min.Height
}; };
hints.height_inc = hints.width_inc = 1; hints.height_inc = hints.width_inc = 1;
var flags = XSizeHintsFlags.PMinSize | XSizeHintsFlags.PResizeInc; var flags = XSizeHintsFlags.PMinSize | XSizeHintsFlags.PResizeInc | XSizeHintsFlags.PPosition | XSizeHintsFlags.PSize;
// People might be passing double.MaxValue // People might be passing double.MaxValue
if (max.Width < 100000 && max.Height < 100000) if (max.Width < 100000 && max.Height < 100000)
{ {