From: Dana Jansens Date: Mon, 29 Apr 2002 23:27:31 +0000 (+0000) Subject: fix bug with window menu positioning X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=84f0293a888db6720647289219ec44d2733df91c;p=chaz%2Fopenbox fix bug with window menu positioning --- diff --git a/src/Window.cc b/src/Window.cc index 4ced0046..cc078fba 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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) {