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

panel.js: Only pick reactive actors on validating right click target #12403

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

Conversation

anaximeno
Copy link
Contributor

@anaximeno anaximeno commented Sep 21, 2024

The goal is to fix linuxmint/cinnamon-spices-extensions#749 for the extension mouse-click-effects.

The extension allows the user to put an icon below its cursor pointer to perform animations or follow the cursor pointer.

I use a St.Icon with the reactive attribute set to false but still it is interfering when right-clicking the panel to open the panel menu, though this does not happen when right-clicking an applet to open the applet menu.

When receiving a right-click event the panel verifies if the click target was indeed the panel directly or another component before showing the menu (I suppose to avoid opening when right-clicking applets), for that, it will pick the actor in the position of the click, but even though the St.Icon I have it is unreactive it's being picked unnecessarily, with this PR I changed it only to pick REACTIVE actors, preventing non-reactive actors from being considered in this process.

@anaximeno anaximeno changed the title panel.js: Only pick reactive actors on button press panel.js: Only pick reactive actors on validating right click target Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant