mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user