diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-07 12:45:31 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-07 12:45:31 +0000 |
commit | 5d94840c848fb0c41fb2c1d92488510936acdcd2 (patch) | |
tree | 5f2885924d1779fe8e385a1b4adff3d7a24bacd0 /src/gui/window.cpp | |
parent | 7692d16b78efd8a4f683150094065079df84461d (diff) | |
download | mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.gz mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.bz2 mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.xz mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.zip |
Solved the window dragging problem.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 12 |
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); + } +} |