fix menu misalignment problem on Linux

This commit is contained in:
nothingTVatYT
2023-10-05 00:06:51 +02:00
parent 1db179d0b2
commit bc872ebff5
2 changed files with 33 additions and 3 deletions

View File

@@ -153,7 +153,11 @@ LinuxWindow::LinuxWindow(const CreateWindowSettings& settings)
hints.max_height = (int)settings.MaximumSize.Y;
hints.flags |= USSize;
}
X11::XSetNormalHints(display, window, &hints);
// honor the WM placement except for manual (overriding) placements
if (settings.StartPosition == WindowStartPosition::Manual)
{
X11::XSetNormalHints(display, window, &hints);
}
// Ensures the child window is always on top of the parent window
if (settings.Parent)