pop-os / cosmic-applets

WIP applets for cosmic-panel
GNU General Public License v3.0
201 stars 73 forks source link

Feature request: Panel applet hover and click behavior #634

Open valeth opened 2 weeks ago

valeth commented 2 weeks ago

Cosmic-applets version: 1.0.0-alpha.1-unstable-2024-08-28

Specific applet that this is regarding (if applicable): Any applet in application tray (top right corner by default)

Issue/Bug description: The current behavior is left click to open the context menu, and after that hovering over other applets opens their respective menu without requiring another click.

This can be a bit problematic for things like the User Session applet when trying to use it to open system settings.

I very often accidentally hover over the adjacent Bluetooth applet when moving my mouse down to click the settings button, requiring me to move the cursor back up and then carefully move it down again.

Steps to reproduce:

  1. Click on User Sessions applet
  2. Casually move mouse down to "Settings..."
  3. Touch the nearby applet which opens it

Expected behavior: It would be preferable to require a click input to open each applet's menu. This would in my opinion be less prone to unintended selection, and could potentially be made into an option.

wiiznokes commented 2 weeks ago

I agree that an option to opt of this feature could be useful, but it could also be fixed by trying to "catch" this cases. For example, by defining a dead zone next the edge of an icon or requiring a certain amount of time before propagating the event to the applet, or both. Only active when there is already a popup opened.