Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal-screen: Allow passing of right click to applications #461

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NP-Hardass
Copy link

Currently, the popup menu is shown for all right clicks that don't have Ctrl, Alt, or Shift. This is the opposite of what is done in every other terminal. The right click should go to the underlying application except when a special modifier is used. Gnome utilizes Shift as the modifier and LXDE uses Ctrl as their modifier.

Referencing gnome-terminal-3.40:
https://github.com/GNOME/gnome-terminal/blob/gnome-3-40/src/terminal-screen.c#L1779C1-L1811C16 we can port this logic over and then we achieve exactly what we are looking for. If there is no application, the terminal handles the right click normally. If there is an application, the click gets passed through unless Shift is held.

Closes #388

Currently, the popup menu is shown for all right clicks that don't have
Ctrl, Alt, or Shift.  This is the opposite of what is done in every
other terminal.  The right click should go to the underlying application
except when a special modifier is used.  Gnome utilizes Shift as the
modifier and LXDE uses Ctrl as their modifier.

Referencing gnome-terminal-3.40:
https://github.com/GNOME/gnome-terminal/blob/gnome-3-40/src/terminal-screen.c#L1779C1-L1811C16 we can port this logic over and then we achieve exactly
what we are looking for. If there is no application, the terminal
handles the right click normally.  If there is an application, the click
gets passed through unless Shift is held.

Closes mate-desktop#388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

application mouse ("tracking") modes: right-click still captured
1 participant