From 9b847fdc31e6b13a78a80c3869cb997ccdbfd3b9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 26 May 2020 12:19:37 +0200 Subject: [PATCH] Add todo regarding offscreen window coordinates --- src/wine-host/editor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 955ffe72..355dbbec 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -196,8 +196,9 @@ void Editor::handle_x11_events() { // We can't directly use the `event.x` and `event.y` coordinates // because the parent window may also be embedded inside another // window. - // TODO: With plugin groups this has to be done any time the - // mouse cursor enters the window on a FOCUS_IN event + // TODO: This seems to get clamped at (0, 0), causing large + // windows dragged off screen on the top or the left + // borders to act up const auto translate_cookie = xcb_translate_coordinates( x11_connection.get(), parent_window, root, 0, 0); const xcb_translate_coordinates_reply_t*