psifidotos / applet-window-appmenu

Plasma 5 applet in order to show the window appmenu
GNU General Public License v2.0
422 stars 33 forks source link

[kvantum themes] - menus sometimes appear offset #177

Open mirenradia opened 3 years ago

mirenradia commented 3 years ago

Hello, I am occasionally finding that menus appear slightly offset relative to the Latte Dock panel on which I have placed this widget as in the screenshot below. screenshot_20210917_095824 It is not always like this and sometimes appears as expected (i.e. menus directly below the menu button on the panel) but it would be nice if it always did so.

If it helps, these are the software versions I am using:

I'm not sure if it's related to the fact I have two monitors with different resolutions (one 1080p laptop screen with a neighbouring 4K external monitor).

Let me know if there's any further information I can provide in order to debug this.

psifidotos commented 3 years ago

I think latest Latte 0.10.x with latest appmenu fixes the situation

ericmacedo commented 3 years ago

I can confirm the bug with:

The bug is present both in a single monitor and a dual-head setup.

One thing to notice is that when I navigate through the menu a few times, it kind of "tweaks" the offset until it has the proper offset (no offset at all).

mirenradia commented 3 years ago

One thing to notice is that when I navigate through the menu a few times, it kind of "tweaks" the offset until it has the proper offset (no offset at all).

Yes, this is the behaviour I am also observing.

psifidotos commented 2 years ago

you need latest Latte Dock, meaning v0.10.x and latest master version in order to confirm that this is still valid.

ericmacedo commented 2 years ago

I can confirm the bug with:

  • OS: Manjaro 21.1.4 Pahvo
  • KDE: 5.22.5-1
  • KDE Frameworks: 5.86.0-1
  • Latte Dock 0.10.75
  • applet-window-appmenu 0.7.1-2
  • Plasma widget style: Kvantum 0.20.1-1

The bug is present both in a single monitor and a dual-head setup.

One thing to notice is that when I navigate through the menu a few times, it kind of "tweaks" the offset until it has the proper offset (no offset at all).

I confirmed it with latte 0.10.75

psifidotos commented 2 years ago

0.10.75 is too abstract can you confirm it with 0.10.1 or 0.10.2 and provide also a way to reproduce?

mirenradia commented 2 years ago

I installed Latte Dock from source using the latest commit on the master branch (commit d354cc4) and am still observing this issue.

psifidotos commented 2 years ago

send your latte layout file because I can not reproduce in any case

mirenradia commented 2 years ago

Here is my layout file: My Layout New.layout.latte (obviously without the .txt extension).

psifidotos commented 2 years ago

Here is my layout file: My Layout New.layout.latte (obviously without the .txt extension).

  1. I can not reproduce. In your system do you use any scaling factor for your screen other than 1.0 ?
  2. Your layout is a crashy one, there are too many duplicated ids for applets and containments, if you go to Layouts Editor you will see the errors and warnings in there, I wouldnt trust it if you get crashes with Latte
mirenradia commented 2 years ago
  • I can not reproduce. In your system do you use any scaling factor for your screen other than 1.0 ?

No, I always use 100% scaling.

  • Your layout is a crashy one, there are too many duplicated ids for applets and containments, if you go to Layouts Editor you will see the errors and warnings in there, I wouldnt trust it if you get crashes with Latte

I suspect this may be due to applets (probably the status bar) that are on panels on displays that are currently not connected. Indeed the layout editor seems to reports the warning for different monitors depending on which ones are connected/connected most recently.

In any case, I have made a simpler layout that is closer to the default one, does not seem to have warnings/errors and reproduces this issue for me: Test-Layout.layout.latte

a-parhom commented 2 years ago

I'm also having same issue with latest Latte-dock and this applet.

TohurTV commented 2 years ago

I only ever get this bug with kvantum based themes and get in on the KDE panel and Latte Panels

mirenradia commented 2 years ago

I only ever get this bug with kvantum based themes and get in on the KDE panel and Latte Panels

This is interesting. I have always used a kvantum based theme but I tried switching to a normal one and the problem also goes away for me.

aliquo93 commented 2 years ago

I can confirm the same behavior on latte dock 0.10.8

psifidotos commented 2 years ago

does that occur when using Breeze application style and Breeze window decorations?

michaldybczak commented 2 years ago

I can confirm this issue and when I had it, I used WhiteSur-dark, with Kvantum (the same theme) and corresponding aurorae theme.

michaldybczak commented 2 years ago

I was playing with some options and now the issue with menu out of place seems to be gone, however, my menu is no longer semi-trough... Wait... I know what's changed! Kvantum!

With the regular Breeze app look, the issue is not present. When Kavntum theme is applied, in my case WhiteSur-dark, the issue appears.

So the problem must be on the edge of what appmenu does and what Kvantum changes.

I hope this helps pinpointing to the solution. Or it may turn out, it's a problem with Kvantum theme, so downstream and @psifidotos, can't do anything about it.

EDIT: I tested out a few of kvantum themes, and so far, all of them produce this effect.

EDIT2: Another clue. When I was switching back and forth various Kvantum thems or Breeze vs Kvantum, I lost blur effect on the menus. This happens sometimes and even kwin restart won't help, but after session releoad, blur on menus is back. However, I noticed, when BLUR AND ROUNDING is not apploed to menus, the offset menus also don't show up, even with kvantum! So the issue seems to be either with blur or rounding effect. In my and the op's cases, we both have dark, semi-transparent, blurred, rounded menus - that's a recipe for replicating the bug.

murakami-marco commented 2 years ago

I also confirm this behavior. In my case I also use Kvantum themes in X11 session. Currently I'm using version v0.6.0 to avoid the menu's offset. It happens, at least to me, since version v0.7.0. With the latest version and in Wayland session, it only happens the first time appmenu loads the application menu, If you close and then open again the menu, it appears at the right position

simply1233 commented 2 years ago

This issues seems to be caused by kvantum menu shadow, because without it there is no offset.

virtual-designer commented 1 year ago

Seems like this issue is still not fixed. I'm having the same issue, with Fedora 38 on KDE Plasma 5.27.4.

saaivignesh20 commented 1 year ago

Yes the issue is not yet fixed. I can confirm with KDE neon 5.27 on KDE Plasma 5.27.8

Gpinchon commented 6 months ago

I just encountered this issue with Plasma 6, it was working fine until I applied this theme. Now I have to deactivate the menu shadows...

RannyArcher commented 4 months ago

i confirm the same issue but tried to play with the configuration file and edit the following variable (i also removed it) as i heard from few people here talking about shadows:

menu_shadow_depth=

it fixed the offset but i saw that the rounded corners are different. still rounded but not as leaving the variable with its default value. but anyway still better than that huge irritating gap.