summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSWindowFrame.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-20 11:06:10 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-20 11:06:10 +0200
commit9df8d2854270cac2af04c1dc77db340f4ff3a031 (patch)
tree273eaa10c3f4c10408c011ca59aed5f2aa0fcd25 /Servers/WindowServer/WSWindowFrame.cpp
parentbcc6ddfb6bd2417ccd8358f64356c1f27026ddee (diff)
downloadserenity-9df8d2854270cac2af04c1dc77db340f4ff3a031.zip
WindowServer: Don't start window resize for MouseUp or MouseMove.
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r--Servers/WindowServer/WSWindowFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp
index ebe9ef3aef..5e8c79ab26 100644
--- a/Servers/WindowServer/WSWindowFrame.cpp
+++ b/Servers/WindowServer/WSWindowFrame.cpp
@@ -298,6 +298,6 @@ void WSWindowFrame::on_mouse_event(const WSMouseEvent& event)
return;
}
- if (m_window.is_resizable() && event.button() == MouseButton::Left)
+ if (m_window.is_resizable() && event.type() == WSEvent::MouseDown && event.button() == MouseButton::Left)
wm.start_window_resize(m_window, event.translated(rect().location()));
}