Reverse the meaning of BWindow fShowLevel to match BView.

This also matches the client_window_info.show_hide_level field used in Deskbar
and other applications.

While doing this, keep fShowLevel fully in sync between BWindow and app_server,
use one message type for both hiding and showing, and make the decision to show
and hide the window in the app_server.

Lastly make minimize behave as described in the Be Book: hidden windows cannot
be minimized, and minimized windows which get hidden become unminimized.
This commit is contained in:
Ryan Leavengood
2012-08-15 23:45:15 -04:00
parent a4bca81193
commit 59347b7f1b
6 changed files with 44 additions and 58 deletions
+1
View File
@@ -352,6 +352,7 @@ private:
void _GetDecoratorSize(float* _borderWidth,
float* _tabHeight) const;
void _SendShowOrHideMessage();
private:
char* fTitle;
+2 -2
View File
@@ -87,8 +87,8 @@ enum {
AS_GET_CURSOR_BITMAP,
// Window definitions
AS_SHOW_WINDOW,
AS_HIDE_WINDOW,
AS_SHOW_OR_HIDE_WINDOW,
AS_INTERNAL_HIDE_WINDOW,
AS_MINIMIZE_WINDOW,
AS_QUIT_WINDOW,
AS_SEND_BEHIND,