fix for when a window doesn't have a menu (decorations.menu == 0)
This commit is contained in:
parent
e546765736
commit
5512cac1b6
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: Toolbar.cc,v 1.31 2002/09/08 19:43:15 fluxgen Exp $
|
||||
// $Id: Toolbar.cc,v 1.32 2002/09/14 10:58:25 rathnor Exp $
|
||||
|
||||
#include "Toolbar.hh"
|
||||
|
||||
|
@ -1032,6 +1032,7 @@ void Toolbar::buttonPressEvent(XButtonEvent *be) {
|
|||
FluxboxWindow *fluxboxwin = 0;
|
||||
if ( iconbar && (fluxboxwin = iconbar->findWindow(be->window)) ) {
|
||||
Windowmenu *wm = fluxboxwin->getWindowmenu();
|
||||
if (wm)
|
||||
fluxboxwin->showMenu(be->x_root, be->y_root - wm->height());
|
||||
} else if (! toolbarmenu->isVisible()) {
|
||||
int x, y;
|
||||
|
|
Loading…
Reference in a new issue