Update flag for XSetWMNormalHints

That small change can fix bug with StartupLocation on Ubuntu. (https://stackoverflow.com/questions/11069666/cannot-get-xcreatesimplewindow-to-open-window-at-the-right-position)
This commit is contained in:
dif-sam
2022-10-03 21:50:08 +04:00
committed by GitHub
parent 6a3804bfde
commit 6f2b426e39
+1 -1
View File
@@ -302,7 +302,7 @@ namespace Avalonia.X11
min_height = min.Height
};
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
if (max.Width < 100000 && max.Height < 100000)
{