pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
480 stars 86 forks source link

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

Open alphabitserial opened 6 days ago

alphabitserial commented 6 days ago

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 commented 6 days ago

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 commented 6 days ago

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 commented 6 days ago

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 commented 6 days ago

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).