summaryrefslogtreecommitdiff
path: root/src/Windowmenu.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-27 03:55:18 +0000
committerDana Jansens <danakj@orodu.net>2002-05-27 03:55:18 +0000
commitb0f8eab0e6be1448e54db56cbed9c01b3a79020e (patch)
treef18fb59efacfcaac43e14d29826b7fd99fe0d084 /src/Windowmenu.cc
parent341c4e04ffc5572dc02563df914dc65a0a57b9f3 (diff)
make window menu behavior consistant. ignore !button1.
Diffstat (limited to 'src/Windowmenu.cc')
-rw-r--r--src/Windowmenu.cc5
1 files changed, 4 insertions, 1 deletions
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: