moodyhunter / applet-window-buttons6

Plasma ~~5~~ (no, 6) applet in order to show window buttons in your panels
GNU General Public License v2.0
54 stars 8 forks source link

Add "At least one shown window is maximized" option #8

Open Kevadroz opened 8 months ago

Kevadroz commented 8 months ago

This plasmoid is often used in conjunction with borderless maximized windows, where a panel acts as a sort of replacement for the titlebar, so an option to always target the topmost visible maximized window would be a nice addition.

Not sure how to handle "always on top" and "always behind" windows.

moodyhunter commented 8 months ago

I'm currently using this plasmoid exactly as you've described:

Screenshot_20240315_231312

By "an option to always target [the topmost visible maximized window]", did you mean the maximized window regardless of whether it is active or not?

Kevadroz commented 8 months ago

I meant that if there's a (not maximized) window on top of the maximized one, regardless if that window is active or not the applet targets said maximized window

For example if you have a maximized browser open and you open a file manager that's not maximized the buttons still target the browser, but if you maximize the file manager now the buttons target the file manager.

We probably are on the same page, anyways.

moodyhunter commented 8 months ago

Cool I've got your point, will add that if I find spare time :)

Kevadroz commented 8 months ago

Not sure how to handle "always on top" and "always behind" windows.

If you choose to handle this case, maybe you could give priority to the active window and target it if it's maximized, regardless of what is above it.