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

[feature request] Super+Right Click tap to open cosmic-comp context menu #909

Open
alphabitserial opened this issue Oct 7, 2024 · 4 comments

Comments

@alphabitserial
Copy link

Right clicking the title bar in a libcosmic app exposes a lot of useful things: creating window stacks, taking screenshots, minimize/maximize, moving windows around workspaces, etc. However, there is currently no way to bring up this menu in, for example, a GTK app which uses client-side decorations!

Right now, holding Super, then holding right click allows for resizing a window. It would be great if holding super and tapping right click would open that context menu in any application. As a bonus, it also allows for opening it in COSMIC applications without having to first aim the pointer at the titlebar.

@Drakulix
Copy link
Member

Drakulix commented Oct 7, 2024

However, there is currently no way to bring up this menu in, for example, a GTK app which uses client-side decorations!

This isn't true, given that GTK apps send the required wayland-request on their title bar to make cosmic-comp open the menu.

However there are windows completely devote of decorations and some less known or cross-platform toolkits, which don't do this.

@maria-komarova I have thought about how we could implement this without loosing resize, given this is an issue for e.g. Firefox Picture-and-picture windows (something many people probably want to be sticky, which currently can only be done through the shortcut).

I think this is a decent proposal, though I also thought about using Super+Middle-Click, however not every pointer device does have that button. Any opinion from a UX perspective?

@maria-komarova
Copy link

I'd try to avoid using middle click for the reason you mention - not every pointer device has the button. So using right click on press and release seems like a better option. I might be missing some potential concerns but I can't yet see them.

@alphabitserial
Copy link
Author

alphabitserial commented Oct 7, 2024

This isn't true, given that GTK apps send the required wayland-request on their title bar to make cosmic-comp open the menu.

My mistake, you're right. Firefox was the case I noticed it not working in, but it makes sense that they'd be doing their own thing.

@Drakulix
Copy link
Member

Drakulix commented Oct 7, 2024

This isn't true, given that GTK apps send the required wayland-request on their title bar to make cosmic-comp open the menu.

My mistake, you're right. Firefox was the case I noticed it not working in, but it makes sense that they'd be doing their own thing.

Note for firefox specifically: You can do a second right-click and it will work.

But we will implement this (eventually).

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

No branches or pull requests

3 participants