summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-04 09:09:01 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-04 09:09:01 -0700
commit257fa6b93daa151dcaacf1f45f0111d6c4187d37 (patch)
treedd8f43c2c93f8d15e84e01a0eff090f7ae269a9b /src/gui/widgets/window.cpp
parentd88c6a103aed290039a608e1f2d7e04b5a5a503f (diff)
downloadmana-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.gz
mana-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.bz2
mana-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.xz
mana-257fa6b93daa151dcaacf1f45f0111d6c4187d37.zip
Reset the cursor when a window is hidden
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 0ffae6ea..e36aea97 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -279,6 +279,14 @@ void Window::widgetResized(const gcn::Event &event)
}
}
+void Window::widgetHidden(const gcn::Event &event)
+{
+ if (gui)
+ {
+ gui->setCursorType(Gui::CURSOR_POINTER);
+ }
+}
+
void Window::setCloseButton(bool flag)
{
mCloseButton = flag;