summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 632ad303..52665213 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -215,3 +215,15 @@ void Window::mouseOut()
{
mouseDown = false;
}
+
+void Window::_mouseInputMessage(const gcn::MouseInput &mouseInput)
+{
+ if (mouseInput.getType() == gcn::MouseInput::MOTION && mouseDown) {
+ // It's a window drag event
+ gcn::Widget::_mouseInputMessage(mouseInput);
+ }
+ else {
+ // It's something else
+ gcn::Container::_mouseInputMessage(mouseInput);
+ }
+}