From b0f8eab0e6be1448e54db56cbed9c01b3a79020e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 27 May 2002 03:55:18 +0000 Subject: [PATCH] make window menu behavior consistant. ignore !button1. --- src/Windowmenu.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index f274a047..7de61dbd 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc @@ -90,6 +90,9 @@ void Windowmenu::show(void) { void Windowmenu::itemSelected(int button, unsigned int index) { + if (button != 1) + return; + BasemenuItem *item = find(index); hide(); @@ -103,7 +106,7 @@ void Windowmenu::itemSelected(int button, unsigned int index) { break; case BScreen::WindowMaximize: - window->maximize(button); + window->maximize(1); // full maximize break; case BScreen::WindowClose: -- 2.39.2