Sebastien: is the panel locked down? In that case the bug won't "work".
I've found the source of the bug -- when you press the middle mouse button the program attempts to begin a "drag" instead of handling the press as usual. The attached patch fixes this (I hope). Some things I suggest checking, assuming that the patch is accepted:
* is there a better way to detect if a menu is open other than detecting a grab
* is the comment accurate (is there a grab only if a menu is open)
* is there a named constant that can be used instead of "2" to refer to the middle mouse button, to make the code self-documenting.
Sebastien: is the panel locked down? In that case the bug won't "work".
I've found the source of the bug -- when you press the middle mouse button the program attempts to begin a "drag" instead of handling the press as usual. The attached patch fixes this (I hope). Some things I suggest checking, assuming that the patch is accepted:
* is there a better way to detect if a menu is open other than detecting a grab
* is the comment accurate (is there a grab only if a menu is open)
* is there a named constant that can be used instead of "2" to refer to the middle mouse button, to make the code self-documenting.