From 16d189e96b34d1888d87e10eda15af7c844685b5 Mon Sep 17 00:00:00 2001 From: "gbowser3@gmail.com" Date: Mon, 25 Jul 2022 19:16:56 -0500 Subject: [PATCH] LibGUI: Move tooltip position up 4 pixels to prevent cursor pop-under --- Userland/Libraries/LibGUI/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/Application.cpp b/Userland/Libraries/LibGUI/Application.cpp index 073cceab35..9189f30fc1 100644 --- a/Userland/Libraries/LibGUI/Application.cpp +++ b/Userland/Libraries/LibGUI/Application.cpp @@ -224,7 +224,7 @@ void Application::request_tooltip_show() int const margin = 30; Gfx::IntPoint adjusted_pos = ConnectionToWindowServer::the().get_global_cursor_position(); - adjusted_pos.translate_by(0, 18); + adjusted_pos.translate_by(0, 14); if (adjusted_pos.x() + m_tooltip_window->width() >= desktop_rect.width() - margin) { adjusted_pos = adjusted_pos.translated(-m_tooltip_window->width(), 0);