mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 04:50:43 +02:00
Delay the XEmbed messages
This works, but we now have the same issues with flickering and resizing found in some other implementations such as Airwave.
This commit is contained in:
+10
-6
@@ -35,8 +35,10 @@ class Editor {
|
||||
*
|
||||
* @param effect The plugin this window is being created for. Used to send
|
||||
* `effEditIdle` messages on a timer.
|
||||
* @param parent_window_handle The X11 window handle passed by the VST host
|
||||
* for the editor to embed itself into.
|
||||
*/
|
||||
HWND open(AEffect* effect);
|
||||
HWND open(AEffect* effect, xcb_window_t parent_window_handle);
|
||||
void close();
|
||||
|
||||
/**
|
||||
@@ -57,19 +59,21 @@ class Editor {
|
||||
void handle_events();
|
||||
|
||||
/**
|
||||
* Embed the (open) window into a parent window.
|
||||
*
|
||||
* @param parent_window_handle The X11 window handle passed by the VST host
|
||||
* for the editor to embed itself into.
|
||||
* Embed the (open) window into the parent window.
|
||||
*
|
||||
* @return Whether the embedding was succesful. Will return false if the
|
||||
* window is not open.
|
||||
*/
|
||||
bool embed_into(const size_t parent_window_handle);
|
||||
bool xembed();
|
||||
|
||||
// Needed to handle idle updates through a timer
|
||||
AEffect* plugin;
|
||||
|
||||
/**
|
||||
* The window handle of the editor window created by the DAW.
|
||||
*/
|
||||
xcb_window_t parent_window;
|
||||
|
||||
private:
|
||||
/**
|
||||
* Return the X11 window handle for the window if it's currently open.
|
||||
|
||||
Reference in New Issue
Block a user