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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user