summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 19:27:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 19:27:33 +0200
commita6391727600df5bd9423989fd58a108c43302913 (patch)
tree84dbc7bec22dd69034f6dcaaef41b7848d125b4d /Servers/WindowServer
parent2921793c016096d593d1fbd5647181199c6d769f (diff)
downloadserenity-a6391727600df5bd9423989fd58a108c43302913.zip
WindowServer: Don't allow resize-grabbing window underneath title bar
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r--Servers/WindowServer/WindowFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/WindowFrame.cpp b/Servers/WindowServer/WindowFrame.cpp
index bc02a42091..9da5943562 100644
--- a/Servers/WindowServer/WindowFrame.cpp
+++ b/Servers/WindowServer/WindowFrame.cpp
@@ -362,11 +362,11 @@ void WindowFrame::on_mouse_event(const MouseEvent& event)
return;
}
- // This is slightly hackish, but expand the title bar rect by one pixel downwards,
+ // This is slightly hackish, but expand the title bar rect by two pixels downwards,
// so that mouse events between the title bar and window contents don't act like
// mouse events on the border.
auto adjusted_title_bar_rect = title_bar_rect();
- adjusted_title_bar_rect.set_height(adjusted_title_bar_rect.height() + 1);
+ adjusted_title_bar_rect.set_height(adjusted_title_bar_rect.height() + 2);
if (adjusted_title_bar_rect.contains(event.position())) {
wm.clear_resize_candidate();