fix bug with window menu positioning

This commit is contained in:
Dana Jansens 2002-04-29 23:27:31 +00:00
parent 22f8550d45
commit 84f0293a88

View file

@ -2596,7 +2596,7 @@ void OpenboxWindow::buttonPressEvent(XButtonEvent *be) {
mx = be->x_root - windowmenu->getWidth() / 2;
if (be->window == frame.title || be->window == frame.label) {
my = frame.y + frame.title_h;
} else if (be->window = frame.handle) {
} else if (be->window == frame.handle) {
my = frame.y + frame.y_handle - windowmenu->getHeight();
} else { // (be->window == frame.window)
if (be->y <= (signed) frame.bevel_w) {