From cb1c1858e0c8e6f71c8d290060b2678b7196fa86 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 21 Jul 2021 22:18:00 +0200 Subject: [PATCH] Translate coordinates from the wrapper window We moved this from `parent_window` to `wine_window` in 974951e96695376b9d050b279ae951cc6af0a4d2 to account for Waveform adding an offset in their windows, so now that we have `wrapper_window` we should be translating from there instead. --- src/wine-host/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index aed14ee2..85af6ad2 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -642,8 +642,8 @@ void Editor::fix_local_coordinates() const { // here. xcb_generic_error_t* error = nullptr; const xcb_translate_coordinates_cookie_t translate_cookie = - xcb_translate_coordinates(x11_connection.get(), wine_window, root, 0, - 0); + xcb_translate_coordinates(x11_connection.get(), wrapper_window.window, + root, 0, 0); const std::unique_ptr translated_coordinates(xcb_translate_coordinates_reply( x11_connection.get(), translate_cookie, &error));