all repos — fluxbox @ 5512cac1b62e233a6edc9a7bd87d32deaeda9612

custom fork of the fluxbox windowmanager

fix for when a window doesn't have a menu (decorations.menu == 0)
rathnor rathnor
commit

5512cac1b62e233a6edc9a7bd87d32deaeda9612

parent

e54676573689d353bf53a4d6225ba1206ddf10fa

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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,7 +1032,8 @@ } else if (be->button == 3) {

FluxboxWindow *fluxboxwin = 0; if ( iconbar && (fluxboxwin = iconbar->findWindow(be->window)) ) { Windowmenu *wm = fluxboxwin->getWindowmenu(); - fluxboxwin->showMenu(be->x_root, be->y_root - wm->height()); + if (wm) + fluxboxwin->showMenu(be->x_root, be->y_root - wm->height()); } else if (! toolbarmenu->isVisible()) { int x, y;