summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-05 18:17:04 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-05 18:17:04 +0000
commit732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51 (patch)
treef09bb3b8c34cdfd78f8346460fabac7b2f21ddf8 /src/gui/window.cpp
parentaba239393ecd298e8ffd16e0b6a5d86837c594ae (diff)
downloadmana-client-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.gz
mana-client-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.bz2
mana-client-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.xz
mana-client-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.zip
Using custom focus handler to work around problem with multiple widgets
requesting modal focus using a stack based approach.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 1245c977..980f8270 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -32,7 +32,6 @@ ImageRect Window::border;
Window::Window(const std::string& caption, bool modal, Window *parent):
gcn::Window(caption),
- prevModal(NULL),
parent(parent),
snapSize(8),
modal(modal),
@@ -85,9 +84,6 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
if (modal)
{
- gcn::FocusHandler *focusHandler = _getFocusHandler();
- prevModal = focusHandler->getModalFocused();
- focusHandler->releaseModalFocus(prevModal);
requestModalFocus();
}
}
@@ -114,16 +110,6 @@ Window::~Window()
config.removeListener("guialpha", this);
delete chrome;
-
- if (hasModalFocus())
- {
- releaseModalFocus();
- }
-
- if (prevModal)
- {
- prevModal->requestModalFocus();
- }
}
void Window::setWindowContainer(WindowContainer *wc)