Fix some plugins not resizing with their expansion toggles

DMG Audio Compassion has a expand/contract toggle button that adds a new
section below the main GUI. Without SWP_NOMOVE it would most of the time
fail to expand and the parent_window_ would sometimes fail to resize
accordingly if the expansion/contraction succeeded resulting in the GUI
locking up.

SWP_NOOWNERZORDER is the same as SWP_NOREPOSITION so having them both
was redundant.
This commit is contained in:
Juuso Kaitila
2026-01-21 16:15:44 +02:00
committed by Robbert van der Helm
parent f504da9e46
commit ba7022df0a
+1 -1
View File
@@ -418,7 +418,7 @@ void Editor::resize(uint16_t width, uint16_t height) {
// `handle_x11_events()`
SetWindowPos(
win32_window_.handle_, nullptr, 0, 0, width, height,
SWP_NOREPOSITION | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_DEFERERASE);
SWP_NOREPOSITION | SWP_NOACTIVATE | SWP_DEFERERASE | SWP_NOMOVE);
// NOTE: This lets us skip resize requests in CLAP plugins when the plugin
// tries to resize to its current size. This fixes resize loops when