summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp8
-rw-r--r--src/gui/widgets/window.h5
2 files changed, 13 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;
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index b3ef3fdc..199c295c 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -103,6 +103,11 @@ class Window : public gcn::Window, gcn::WidgetListener
void widgetResized(const gcn::Event &event);
/**
+ * Called whenever the widget is hidden.
+ */
+ void widgetHidden(const gcn::Event &event);
+
+ /**
* Sets whether or not the window has a close button.
*/
void setCloseButton(bool flag);