snap a window menu to the bottom of the screen if it is positioned too low.
Scott Moynes smoynes@nexus.carleton.ca
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/Window.cc
→
src/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());