fixed menu placement on menus with very small windows
This commit is contained in:
parent
a0a31c3f79
commit
5b8ec88623
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue