I've recently switched to using dwm
and have been bumping up against a weird behaviour in Firefox, when clicking the right mouse button.
Above is Firefox opening a context menu under most window managers. (This particular shot is taken in i3, but it's the same in Gnome and other window managers and desktop environments). Notice that the context menu appears a couple of pixels down and to the right of the cursor's hotspot, so that releasing the mouse button won't activate anything from the menu; the menu remains open and you may select something from it with a subsequent click.
By contrast, the above shot is of Firefox opening the context menu under dwm. Notice that the context menu has appeared directly under the cursor's hotspot, so pressing and releasing the mouse button instantly triggers the 'Open Link in New Tab' item and closes the menu. (This same thing also happens with the 'Back' option, if you do a right-click that's not over a link)
This only seems to happen in Firefox; Chrome's context menu appears in the correct place, as do the ones in Gnome Terminal and Gimp. Has anybody else bumped into this and know of a fix?