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));