Rearrange editor functions

This commit is contained in:
Robbert van der Helm
2021-06-15 11:00:22 +02:00
parent 42e1e49ab9
commit efeb8d7348
2 changed files with 14 additions and 14 deletions
+9 -9
View File
@@ -358,15 +358,6 @@ Editor::Editor(MainContext& main_context,
}
}
HWND Editor::get_win32_handle() const noexcept {
// FIXME: The double embed and XEmbed options don't work together right now
if (win32_child_window && !use_xembed) {
return win32_child_window->handle;
} else {
return win32_window.handle;
}
}
void Editor::handle_x11_events() const noexcept {
// NOTE: Ardour will unmap the window instead of closing the editor. When
// the window is unmapped `wine_window` doesn't exist and any X11
@@ -460,6 +451,15 @@ void Editor::handle_x11_events() const noexcept {
}
}
HWND Editor::get_win32_handle() const noexcept {
// FIXME: The double embed and XEmbed options don't work together right now
if (win32_child_window && !use_xembed) {
return win32_child_window->handle;
} else {
return win32_window.handle;
}
}
void Editor::fix_local_coordinates() const {
if (use_xembed) {
return;