mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +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.
|
// here.
|
||||||
xcb_generic_error_t* error = nullptr;
|
xcb_generic_error_t* error = nullptr;
|
||||||
const xcb_translate_coordinates_cookie_t translate_cookie =
|
const xcb_translate_coordinates_cookie_t translate_cookie =
|
||||||
xcb_translate_coordinates(x11_connection.get(), wine_window, root, 0,
|
xcb_translate_coordinates(x11_connection.get(), wrapper_window.window,
|
||||||
0);
|
root, 0, 0);
|
||||||
const std::unique_ptr<xcb_translate_coordinates_reply_t>
|
const std::unique_ptr<xcb_translate_coordinates_reply_t>
|
||||||
translated_coordinates(xcb_translate_coordinates_reply(
|
translated_coordinates(xcb_translate_coordinates_reply(
|
||||||
x11_connection.get(), translate_cookie, &error));
|
x11_connection.get(), translate_cookie, &error));
|
||||||
|
|||||||
Reference in New Issue
Block a user