GNOME Bugzilla – Bug 108230
right mouse click isn't forwarded to application
Last modified: 2006-04-20 13:43:46 UTC
Description of Problem: Clicking with the right mouse button always pops up the menu, so there's no way to pass it to the application (e.g. you cannot use it in "mc" to select files). This behaviour should be configurable. Additional Information: gnome-terminal 2.2.1, vte 0.10.26
It shouldn't be configurable, it should work. I think you can use Ctrl+click or something like that to pass through.
It should work but it doesn't... Ctrl+rightclick does nothing. Simple rightclick pops up the menu for me, even if mc is running.
I took a look at the source to see if I can fix it in 10 minutes. Well I couldn't, but... I found the code around terminal-screen.c:1470 that forwards Ctrl+Rightclick to vte, but it seems to me that this code forwards it as Ctrl+Rightclick. And vte doesn't do anything with mouse events if a modifier is pressed. So either vte should be changed to ignore keyboard modifiers in case of mouse events, or gnome-terminal should somehow remove the modifiers from the event it forwards to vte. Anyway the best would be if gnome-terminal knew whether the application understands mouse events so that I don't even have to press Ctrl when using mc. This works perfectly with Gnome1's terminal and MGT. For Gnome2, it seems to me that the interface provided by vte has to be extended, since mouse_send_xy_* are private to vte right now. I'm not sure at all but I'm afraid that the necessary information is not provided by vte to gnome-terminal.
moving to GNOMEVER2.2
*** This bug has been marked as a duplicate of 13299 ***