* Don't use B_ZOOM; this does not respect the B_NOT_ZOOMABLE flag, same problem
as with B_MINIMIZE. This fixes bug #4134. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31828 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
// handling of this message into BApplication
|
// handling of this message into BApplication
|
||||||
|
|
||||||
#define _MINIMIZE_ '_WMZ'
|
#define _MINIMIZE_ '_WMZ'
|
||||||
|
#define _ZOOM_ '_WZO'
|
||||||
#define _SWITCH_WORKSPACE_ '_SWS'
|
#define _SWITCH_WORKSPACE_ '_SWS'
|
||||||
|
|
||||||
|
|
||||||
@@ -855,12 +856,16 @@ BWindow::DispatchMessage(BMessage* msg, BHandler* target)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case _MINIMIZE_:
|
case _MINIMIZE_:
|
||||||
{
|
|
||||||
// Used by the minimize shortcut
|
// Used by the minimize shortcut
|
||||||
if ((Flags() & B_NOT_MINIMIZABLE) == 0)
|
if ((Flags() & B_NOT_MINIMIZABLE) == 0)
|
||||||
Minimize(true);
|
Minimize(true);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
case _ZOOM_:
|
||||||
|
// Used by the zoom shortcut
|
||||||
|
if ((Flags() & B_NOT_ZOOMABLE) == 0)
|
||||||
|
Zoom();
|
||||||
|
break;
|
||||||
|
|
||||||
case _SWITCH_WORKSPACE_:
|
case _SWITCH_WORKSPACE_:
|
||||||
{
|
{
|
||||||
@@ -2613,7 +2618,7 @@ BWindow::_InitData(BRect frame, const char* title, window_look look,
|
|||||||
AddShortcut('M', B_COMMAND_KEY | B_CONTROL_KEY,
|
AddShortcut('M', B_COMMAND_KEY | B_CONTROL_KEY,
|
||||||
new BMessage(_MINIMIZE_), NULL);
|
new BMessage(_MINIMIZE_), NULL);
|
||||||
AddShortcut('Z', B_COMMAND_KEY | B_CONTROL_KEY,
|
AddShortcut('Z', B_COMMAND_KEY | B_CONTROL_KEY,
|
||||||
new BMessage(B_ZOOM), NULL);
|
new BMessage(_ZOOM_), NULL);
|
||||||
AddShortcut('H', B_COMMAND_KEY | B_CONTROL_KEY,
|
AddShortcut('H', B_COMMAND_KEY | B_CONTROL_KEY,
|
||||||
new BMessage(B_HIDE_APPLICATION), NULL);
|
new BMessage(B_HIDE_APPLICATION), NULL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user