elementary / applications-menu

Applications Menu for elementary OS and the Pantheon desktop environment
https://elementary.io
GNU General Public License v3.0
103 stars 35 forks source link

Clicking onto another screen doesn't close the menu #525

Open ChildishGiant opened 2 years ago

ChildishGiant commented 2 years ago

What Happened?

When clicking off off the menu onto anywhere on the same screen, it closes but this doesn't happen if the next click is on another monitor. I assume this is unintended as if someone clicks off that screen they almost certainly want to close the menu.

Steps to Reproduce

  1. Have two screens
  2. Open app menu
  3. Click to other screen

Expected Behavior

The app menu should close like it does if the click is on the primary monitor.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

cassidyjames commented 2 years ago

My understanding is that under X, WingPanel actually draws a full-screen invisible window to handle clicking to close popovers. I'm not sure what the plan is moving forward, but it's possible we could drop that if the panel losing focus closed it (so focusing another app would close it), but that would also require that clicking the blank desktop focused it (even though there's no actions when primary-clicked, there's the ability to secondary-click for the desktop menu). However, I'm not sure if the latter would be desired behavior, as it could be weird that it looks like nothing is focused on your workspace.

Another alternative could be having WingPanel draw a blank window on every display to accept clicks, but I think that's bandaging the issue with more X-specific code.

ChildishGiant commented 2 years ago

Maybe this is blocked by Wayland then?