projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
341c4e0
)
make window menu behavior consistant. ignore !button1.
author
Dana Jansens
<danakj@orodu.net>
Mon, 27 May 2002 03:55:18 +0000
(
03:55
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 27 May 2002 03:55:18 +0000
(
03:55
+0000)
src/Windowmenu.cc
patch
|
blob
|
history
diff --git
a/src/Windowmenu.cc
b/src/Windowmenu.cc
index
f274a04
..
7de61db
100644
(file)
--- 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: