psifidotos / applet-window-title

Plasma 5 applet that shows the application title and icon for active window
GNU General Public License v2.0
244 stars 34 forks source link

Feature Request: Give an option to make the window title applet a clickable button #121

Open debnath-d opened 2 years ago

debnath-d commented 2 years ago

Give a toggle to make the window title applet a clickable button which will open a combination of the Alt+F3 menu and the menu which opens when right clicked on that entry in Latte Dock.

For example in case of Firefox, the Alt+F3 menu looks like this:

image

and the right-click on latte menu looks like this:

image

I feel that these menus contain useful actions which a user would find beneficial if given access through clicking on the window title applet. Mainly because someone who uses the window title applet probably has hidden the titlebar (like me) and the Alt+F3 menu can now only be accessed by keyboard shortcut. I've also set Latte Dock to auto-hide whenever a window goes over it. So, most of the time, the dock is not directly shown on my desktop, but the window title applet is shown 100% of the time.

By the way, the application title on the macOS global menu is also a clickable menu.

psifidotos commented 2 years ago

Alt + F3 menu is the best but unfortunately KWin is not exposing a way to support this. I have opened a bug report in order to keep track if you want: https://bugs.kde.org/show_bug.cgi?id=443816

debnath-d commented 2 years ago

Thanks for the quick response and also for the bug report! I'll keep an eye on the bug report. Can you try to implement the menu from the latte-dock-right-click-menu-on-entry for now so that the groundwork will be ready whenever (or if) the Alt+F3 menu is made available from upstream?

Thanks again for the applets and Latte Dock. They're part of my day to day workflow and they work extremely well :)

psifidotos commented 2 years ago

makes sense and this is why I leave it open. But it would increase code complexity a lot and needs many adjustments from the Latte Tasks paradigm, so we will see, currently I dont have any interest about it.

debnath-d commented 2 years ago

By the way, I actually came here to open this feature request when I was reading Nate's blog and saw this screenshot:

image

This is exactly the menu I want. It seems like the default plasma task manager already has what I want: the combination of the Alt+F3 menu and the right click context menu of the entry. But the task manager is also a plasma applet, right? Can you take a look into how the default plasma task manager is doing it?

psifidotos commented 2 years ago

I have already implemented it for Latte Tasks applet that does not change my previous response of course

debnath-d commented 2 years ago

You're right. Just noticed that the Alt+F3 menu is indeed available on the Latte Dock entries which have open instances. Anyway, hope this will be possible someday in the future and thanks again for all your work!