mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
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:
committed by
Robbert van der Helm
parent
f504da9e46
commit
ba7022df0a
@@ -418,7 +418,7 @@ void Editor::resize(uint16_t width, uint16_t height) {
|
|||||||
// `handle_x11_events()`
|
// `handle_x11_events()`
|
||||||
SetWindowPos(
|
SetWindowPos(
|
||||||
win32_window_.handle_, nullptr, 0, 0, width, height,
|
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
|
// 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
|
// tries to resize to its current size. This fixes resize loops when
|
||||||
|
|||||||
Reference in New Issue
Block a user