diff options
author | Kevin Murphy <keggsmurph21@gmail.com> | 2019-12-09 00:23:39 -0800 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-09 09:23:39 +0100 |
commit | 862130444789dc46e2e11470b6106b370e1e2a61 (patch) | |
tree | 06f843b45e6640c26dab00e0400144991ec6d5c2 /Servers | |
parent | e339c2bce803288287f601b3a0f8404ed031796e (diff) | |
download | serenity-862130444789dc46e2e11470b6106b370e1e2a61.zip |
WindowServer: Fix typo in drag&drop cursor rect computation :^) (#863)
Diffstat (limited to 'Servers')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index 622d34ba51..e9842f2d22 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -1204,7 +1204,7 @@ void WSWindowManager::end_dnd_drag() Rect WSWindowManager::dnd_rect() const { int bitmap_width = m_dnd_bitmap ? m_dnd_bitmap->width() : 0; - int bitmap_height = m_dnd_bitmap ? m_dnd_bitmap->width() : 0; + int bitmap_height = m_dnd_bitmap ? m_dnd_bitmap->height() : 0; int width = font().width(m_dnd_text) + bitmap_width; int height = max((int)font().glyph_height(), bitmap_height); auto location = WSCompositor::the().current_cursor_rect().center().translated(8, 8); |