fixed menu placement on menus with very small windows
Scott Moynes smoynes@nexus.carleton.ca
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -40,7 +40,7 @@ # endif // HAVE_STDIO_H
#endif // DEBUG #ifdef HAVE_STDLIB_H - #include <stdlib.h> +# include <stdlib.h> #endif // HAVE_STDLIB_H }@@ -3173,11 +3173,11 @@ (frame.border_w + frame.mwm_border_w);
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);