Translate coordinates from the wrapper window

We moved this from `parent_window` to `wine_window` in
974951e966 to account for Waveform adding
an offset in their windows, so now that we have `wrapper_window` we
should be translating from there instead.
This commit is contained in:
Robbert van der Helm
2021-07-21 22:18:00 +02:00
parent d13f39dce5
commit cb1c1858e0
+2 -2
View File
@@ -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<xcb_translate_coordinates_reply_t>
translated_coordinates(xcb_translate_coordinates_reply(
x11_connection.get(), translate_cookie, &error));