]> Dogcows Code - chaz/openbox/commitdiff
fixed menu placement on menus with very small windows
authorScott Moynes <smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 00:14:15 +0000 (00:14 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 00:14:15 +0000 (00:14 +0000)
src/Window.cc

index 3005674b900bdac5cb62585b5a84ccb2d0dec629..c5d3db39e0da8c48e93ac2017dfbf50bdecad542 100644 (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);
This page took 0.024064 seconds and 4 git commands to generate.