diff options
author | gbowser3@gmail.com <gbowser3@gmail.com> | 2022-07-25 19:16:56 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-26 12:42:18 +0200 |
commit | 16d189e96b34d1888d87e10eda15af7c844685b5 (patch) | |
tree | 7e12d0c7367a60debfd67b7649627d726e960a36 /Userland/Libraries/LibGUI | |
parent | 13406b83b14db7a674c4ddd79f8089cac031ce92 (diff) | |
download | serenity-16d189e96b34d1888d87e10eda15af7c844685b5.zip |
LibGUI: Move tooltip position up 4 pixels to prevent cursor pop-under
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/Application.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |