projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8ec88
)
snap a window menu to the bottom of the screen if it is positioned too low.
author
Scott Moynes
<smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 01:17:24 +0000
(
01:17
+0000)
committer
Scott Moynes
<smoynes@nexus.carleton.ca>
Tue, 1 Oct 2002 01:17:24 +0000
(
01:17
+0000)
src/Window.cc
patch
|
blob
|
history
diff --git
a/src/Window.cc
b/src/Window.cc
index
c5d3db3
..
3a98211
100644
(file)
--- a/
src/Window.cc
+++ b/
src/Window.cc
@@
-3179,7
+3179,13
@@
void BlackboxWindow::buttonPressEvent(const XButtonEvent *be) {
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());