From: Scott Moynes Date: Tue, 1 Oct 2002 00:14:15 +0000 (+0000) Subject: fixed menu placement on menus with very small windows X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5b8ec886237aff9ede99feb66721f8ac7a44d2ed;p=chaz%2Fopenbox fixed menu placement on menus with very small windows --- diff --git a/src/Window.cc b/src/Window.cc index 3005674b..c5d3db39 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -40,7 +40,7 @@ extern "C" { #endif // DEBUG #ifdef HAVE_STDLIB_H - #include +# include #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);