GNOME Bugzilla – Bug 598090
LMB Mouse up event not registered when opining context popup menu
Last modified: 2009-10-26 22:56:21 UTC
Steps to reproduce (strictly follow the steps, don't release mouse unless specified as a CLICK or implicit RELEASE BUTTON) 1. Go into terminal 2. Press LMB down 3. Drag to select some text 4. Click (DOWN + UP) RMB 5. Move over to Copy item 6. Now release LMB 7. Now move the mouse As you can see the selection mode is still enabled. These steps might seem unreal and scarce, though they are just a simple definite way of reproducing the problem. This can also happen if you select text and open the popup very quickly, either pressing down RMB before your LMB finger got a chance to properly leave the mouse, or before the gnome-terminal could register the LMB release. This happens to me a lot, and it's very frustrating. I don't always notice it and then move to another tab or desktop or window using the keyboard, only to find nothing want to paste and going back to see the selection is stuck again.
-> vte
ChPe, I looked around but have no idea how to fix this. The popup events are caught by g-t and never reach vte.
Vte should get a focus-out event when the popup menu opens, I think. So there would be the place to make vte stop extending the selection.
I see. Working on it.
Ok, fixed it. Should be good enough for now.