Browse Source

VST2 Client: Flush command buffer after attaching plugin window on Linux

pull/22/head
reuk 3 years ago
parent
commit
fe744f8112
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 4
- 0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1071,6 +1071,10 @@ public:
(Window) getWindowHandle(),
(HostWindowType) hostWindow,
0, 0);
// The host is likely to attempt to move/resize the window directly after this call,
// and we need to ensure that the X server knows that our window has been attached
// before that happens.
X11Symbols::getInstance()->xFlush (display);
#elif JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
checkHostWindowScaleFactor();
startTimer (500);


Loading…
Cancel
Save