prateekmedia / Menu11

Deprecated, here is a Not so feature rich replacement: https://github.com/adhec/OnzeMenuKDE, contact me if you are interested in maintaining this.
https://store.kde.org/p/1544959/
GNU General Public License v2.0
100 stars 12 forks source link

[Latte dock] Auto-hide stops working when menu is opened #33

Closed aliquo93 closed 2 years ago

aliquo93 commented 3 years ago

If I click the app menu directly from Latte Dock with the mouse, there are no problems, but if I press the "Super" button on the keyboard, Latte Dock stops to auto-hide on maximized applications and I'm forced to close and reopen Latte Dock to make it work again.

Bug already reported (and confirmed) on: https://bugs.kde.org/show_bug.cgi?id=441053

I've also attached a video that shows the issue.

https://user-images.githubusercontent.com/9071297/131232417-c72e119c-fe95-45b2-add9-77783ada9590.mp4

prateekmedia commented 3 years ago

Can you check if it persists if you set position from configure menu11 to Auto.

aliquo93 commented 3 years ago

Can you check if it persists if you set position from configure menu11 to Auto.

Yes, happens also with "Auto".

FForkist commented 3 years ago

Same thing goes in my latte dock setup. A temporary workaround i've found was to right click the dock and click outside instead of completely restarting latte-dock.

KBeDevel commented 3 years ago

Same here. It happens using any Menu11 position configuration

I can dismiss the dock by right-clicking any place in the dock, even when the "start menu" is still visible, after this action, any left-click outside the menu and/or dock will dismiss the menu and will trigger the latte auto-hide effect as expected.

Additional context:

prateekmedia commented 3 years ago

The problem is that I don't use latte dock or know much about it, If anbody has a solution then I would be happy to merge it.

justinschwerdtfeger commented 3 years ago

I am also experiencing this bug. Since Menu 11 is forked from Menu Z, I tested this issue on menu Z, but it does not occur. I noticed this bug happens with applications launchers that do not have an indicator when clicked on in Latte dock (it also happens in onzemenu), but it does not happen in application launchers such as Menu Z and Plasma's default Application Launcher which do have an indicator underneath them in Latte dock for me at least. Sorry I could not bring any more info on this issue.

prateekmedia commented 3 years ago

@Anti-Shulk This is most likely happening due to below line: https://github.com/prateekmedia/Menu11/blob/99042ec24f2567321a6b53c29e0444e7c96d48cc/contents/ui/MenuRepresentation.qml#L74-L123

It is happenin mostly cause this applet is try to position itself in custom coordinates (which is in fact taken from ditto menu (which onze menu also has)) that's why this problem is common in onze menu and menu 11.

The only right way to do it is to rewrite this MenuRepresentation file to better positioning system.

psifidotos commented 2 years ago

I found a workaround in order to support this with Latte it will be part of Latte 0.10.3 . It fixes also the same issue with Simple Launcher applet

psifidotos commented 2 years ago

https://invent.kde.org/plasma/latte-dock/-/commit/a7cd06c2efafcaa2e3a6780bef1cf7cb081e9c6d

prateekmedia commented 2 years ago

@psifidotos Thanks for the info, looks like It will finally fix this.

I will close this issue when the latte dock is released with that patch.

prateekmedia commented 2 years ago

Latte dock v0.10.3 is released 20 days ago and it has the patch that would fix this, So I will close the issue for now.

aliquo93 commented 2 years ago

@psifidotos @prateekmedia Congtratulations to both of you for the great work!