all repos — openbox @ 783fac59c994930139c1ee8162b9150e41dc8307

openbox fork - make it a bit more like ryudo

snap a window menu to the bottom of the screen if it is positioned too low.
Scott Moynes smoynes@nexus.carleton.ca
commit

783fac59c994930139c1ee8162b9150e41dc8307

parent

5b8ec886237aff9ede99feb66721f8ac7a44d2ed

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -3179,7 +3179,13 @@ if (my < top_edge)

my = top_edge; else if (my > bottom_edge) my = bottom_edge; + + if (my + windowmenu->getHeight() > screen->getHeight()) + my = screen->getHeight() - windowmenu->getHeight() - + (screen->getBorderWidth() * 2); + + cout << my << endl; windowmenu->move(mx, my); windowmenu->show(); XRaiseWindow(blackbox->getXDisplay(), windowmenu->getWindowID());