From b160338c1b40aab86772883701396bf06fd9593b Mon Sep 17 00:00:00 2001
From: Björn Steinbrink <B.Steinbrink@gmx.de>
Date: Sun, 17 Sep 2006 16:50:57 +0000
Subject: Stop using the sticky window attribute which is unneeded for the
 current implementation, instead adjust the set of affected windows by the
 'hide' shortcut.

---
 ChangeLog    |  6 ++++++
 src/game.cpp | 12 +++---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1c642b9e..5625062c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-17  Björn Steinbrink  <B.Steinbrink@gmx.de>
+
+	* src/game.cpp: Stop using the sticky window attribute which is
+	unneeded for the current implementation, instead adjust the set of
+	affected windows by the 'hide' shortcut.
+
 2006-09-17  Philipp Sehmisch  <tmw@crushnet.org>
 
 	* data/maps/new_14-1.tmx.gz, data/maps/new_15-1.tmx.gz, 
diff --git a/src/game.cpp b/src/game.cpp
index e548e1ef..bc6b0622 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -202,9 +202,9 @@ void createGuiWindows(Network *network)
       minimap->getHeight() + 30);*/
 
     // Set initial window visibility
-    chatWindow->setSticky(true);
-    miniStatusWindow->setSticky(true);
-    menuWindow->setSticky(true);
+//    chatWindow->setSticky(true);
+//    miniStatusWindow->setSticky(true);
+//    menuWindow->setSticky(true);
 
     chatWindow->setVisible(true);
     miniStatusWindow->setVisible(true);
@@ -494,10 +494,7 @@ void Game::handleInput()
 
                 // Attempt to hide all windows
                 case SDLK_h:
-                    chatWindow->setVisible(false);
-                    miniStatusWindow->setVisible(false);
                     statusWindow->setVisible(false);
-                    menuWindow->setVisible(false);
                     buyDialog->setVisible(false);
                     sellDialog->setVisible(false);
                     buySellDialog->setVisible(false);
@@ -505,12 +502,9 @@ void Game::handleInput()
                     npcTextDialog->setVisible(false);
                     npcListDialog->setVisible(false);
                     skillDialog->setVisible(false);
-                    //newSkillWindow->setVisible(false);
                     setupWindow->setVisible(false);
                     equipmentWindow->setVisible(false);
                     chargeDialog->setVisible(false);
-                    tradeWindow->setVisible(false);
-                    //buddyWindow->setVisible(false);
                     helpWindow->setVisible(false);
                     debugWindow->setVisible(false);
                 break;
-- 
cgit v1.2.3-70-g09d2