mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Remove Editor::handle_win32_events
This apparently isn't needed anymore.
This commit is contained in:
@@ -355,17 +355,13 @@ void Vst2Bridge::handle_x11_events() {
|
||||
}
|
||||
|
||||
void Vst2Bridge::handle_win32_events() {
|
||||
if (editor) {
|
||||
editor->handle_win32_events();
|
||||
} else {
|
||||
MSG msg;
|
||||
MSG msg;
|
||||
|
||||
for (int i = 0; i < max_win32_messages &&
|
||||
PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE);
|
||||
i++) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
for (int i = 0;
|
||||
i < max_win32_messages && PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE);
|
||||
i++) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -437,8 +437,6 @@ void Vst3Bridge::handle_x11_events() {
|
||||
}
|
||||
|
||||
void Vst3Bridge::handle_win32_events() {
|
||||
// TODO: Remove this function from the `Editor`
|
||||
|
||||
MSG msg;
|
||||
|
||||
for (int i = 0;
|
||||
|
||||
@@ -219,23 +219,6 @@ HWND Editor::get_win32_handle() const {
|
||||
}
|
||||
}
|
||||
|
||||
void Editor::handle_win32_events() const {
|
||||
MSG msg;
|
||||
|
||||
// The null value for the second argument is needed to handle interaction
|
||||
// with child GUI components. So far limiting this to `max_win32_messages`
|
||||
// messages has only been needed for Waves plugins as they otherwise cause
|
||||
// an infinite message loop.
|
||||
// TODO: If the timer is no longer needed, then we can drop this entire
|
||||
// function
|
||||
for (int i = 0;
|
||||
i < max_win32_messages && PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE);
|
||||
i++) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
}
|
||||
|
||||
void Editor::handle_x11_events() const {
|
||||
// TODO: Initiating drag-and-drop in Serum _sometimes_ causes the GUI to
|
||||
// update while dragging while other times it does not. From all the
|
||||
|
||||
@@ -125,13 +125,6 @@ class Editor {
|
||||
*/
|
||||
bool supports_ewmh_active_window() const;
|
||||
|
||||
/**
|
||||
* Pump messages from the editor loop loop until all events are process.
|
||||
* Must be run from the same thread the GUI was created in because of Win32
|
||||
* limitations.
|
||||
*/
|
||||
void handle_win32_events() const;
|
||||
|
||||
/**
|
||||
* Handle X11 events sent to the window our editor is embedded in.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user