-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Opening app menu via keyboard shortcut opens it under the cursor #9093
Opening app menu via keyboard shortcut opens it under the cursor #9093
Comments
Related to #9005 |
I thought the current behavior was intentional, isn't it convenient for mouse users? |
That behavior is one of the primary reasons I wouldn't run qubes if I were forced into xfce. Even if it's convenient for mouse users, it's a huge PITA for keyboard-shortcut users (pressing enter will select whatever is under the mouse cursor, not the first option, which breaks pseudo-autocomplete, for instance) |
The current default position is set to https://github.com/QubesOS/qubes-desktop-linux-menu/blob/main/qubes_menu/qubes-menu.glade#L8 A new command line option could be added to set the position (e.g. |
Another approach could be depending on a Both approaches are easy to implement. @marmarta Is it OK to add a command line option or feature to allow users to set the Appmenu position? (rather than at mouse position). I can work on it. |
I think a feature is the best approach - it can be changed while the menu is running, for example. |
PR Submitted Review priority: Low I will work on the relevant unittests if the change is good. |
This needs a final touch. Currently assigning p.s.: I believe I have a clear idea on this bug. It happens since program loses focus on 2nd Hotkey press and |
What do "left," "right," and "center" mean? My expectation of "normal" behavior would be for the app menu to be attached to the button on the panel that opens it.
This sounds familiar, but I can't find an issue for it. I suggest opening a separate issue for it (unless you can find an existing one). |
Top-Left, top-right or top-center of the screen. Or under the current mouse position. Since the menu height is set to (around) screen height, there is no need to set the vertical position. I assume most users will use either Attaching the Appmenu to the exact position of the button on the panel is much harder than it sounds. It requires a real Xfce plugin (work in progress for #2136).
Yes. Exactly. |
But my panel is on the bottom of my screen, not the top.
My menu currently takes up only about half of my screen height.
Okay, fair enough. |
Oh. I see. Now that I look again at code, the 0.9x resize only downsizes the menu, not expand it. So the positions could be Top-Left, Top-Right, Bottom-Left, Bottom-right and mouse position. Now that I reconsider it, adding option for centring menu vertically or horizontally is useless. Hope everyone agrees with it. |
fixes: QubesOS/qubes-issues#9093 Icons from Eva Icons under MIT license
How to file a helpful issue
Qubes OS release
4.2
Brief summary
Opening app menu via keyboard shortcut opens it under the cursor instead of the normal location.
Steps to reproduce
Assign app menu to a keyboard shortcut. Press that keyboard shortcut.
Expected behavior
App menu opens in same location as if you had clicked the button to open it.
Actual behavior
App menu opens under cursor, e.g., in the middle of the screen, unattached from panel.
The text was updated successfully, but these errors were encountered: