fixed menu placement on menus with very small windows

This commit is contained in:
Scott Moynes 2002-10-01 00:14:15 +00:00
parent a0a31c3f79
commit 5b8ec88623

View file

@ -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);