Zren / plasma-hud

Provides a way to run menubar commands in KDE Plasma through rofi, much like the Unity 7 Heads-Up Display (HUD).
GNU General Public License v2.0
235 stars 9 forks source link

Plasma hud placement is broken in CSD programs #57

Open steviator opened 1 year ago

steviator commented 1 year ago

Many applications now draw their own titlebar, plasma-hud is broken with every single one of them. This includes all major web browsers and the Evolution email program, which are two heavily used applications that are open basically all the time on my computer.

This means that sometimes the hud appears where the (missing) application menu used to be and sometimes it appears at the top of the screen in the middle.

Since detecting the position of the Window is broken and only going to get worse as more apps move to CSD, the sensible thing to do is to force the window to always appear at the top of the screen where the menu is most likely located.

I've tried to fix this on my own, but don't have the time to learn python and rofi syntax, and have already wasted a couple of hours trying to decipher the code and why location 2 doesn't mean the top of the screen when calling rofi from plasma-hud, but does work on the command-line.

I find the ridiculous behavior with regards to placement too frustrating and annoying to deal with, making this a show-stopper bug for me, so I'd really appreciate some help from someone to fix this stupidity by locking the position of the hud to be centred at the top of the screen.