projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a31c3
)
fixed menu placement on menus with very small windows
author
Scott Moynes
<smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 00:14:15 +0000
(
00:14
+0000)
committer
Scott Moynes
<smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 00:14:15 +0000
(
00:14
+0000)
src/Window.cc
patch
|
blob
|
history
diff --git
a/src/Window.cc
b/src/Window.cc
index 3005674b900bdac5cb62585b5a84ccb2d0dec629..c5d3db39e0da8c48e93ac2017dfbf50bdecad542 100644
(file)
--- a/
src/Window.cc
+++ b/
src/Window.cc
@@
-40,7
+40,7
@@
extern "C" {
#endif // DEBUG
#ifdef HAVE_STDLIB_H
-
#
include <stdlib.h>
+
#
include <stdlib.h>
#endif // HAVE_STDLIB_H
}
@@
-3173,11
+3173,11
@@
void BlackboxWindow::buttonPressEvent(const XButtonEvent *be) {
if (mx < left_edge)
mx = left_edge;
- if (mx > right_edge)
+
else
if (mx > right_edge)
mx = right_edge;
if (my < top_edge)
my = top_edge;
- if (my > bottom_edge)
+
else
if (my > bottom_edge)
my = bottom_edge;
windowmenu->move(mx, my);