applet-window-appmenu icon indicating copy to clipboard operation
applet-window-appmenu copied to clipboard

[kvantum themes] - menus sometimes appear offset

Open mirenradia opened this issue 3 years ago • 24 comments

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:

  • Ubuntu 20.04.3
  • KDE Plasma 5.18.7 (on X11)
  • KDE Frameworks 5.68.0
  • Qt 5.12.8
  • Latte Dock 0.9.11
  • applet-window-appmenu 0.7.1 (installed following the installation instructions)

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.

mirenradia avatar Sep 17 '21 09:09 mirenradia

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

psifidotos avatar Sep 17 '21 10:09 psifidotos

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).

ericmacedo avatar Oct 01 '21 23:10 ericmacedo

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.

mirenradia avatar Oct 02 '21 14:10 mirenradia

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

psifidotos avatar Oct 09 '21 13:10 psifidotos

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

ericmacedo avatar Oct 09 '21 16:10 ericmacedo

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?

psifidotos avatar Oct 09 '21 17:10 psifidotos

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

mirenradia avatar Oct 10 '21 16:10 mirenradia

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

psifidotos avatar Oct 10 '21 17:10 psifidotos

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

mirenradia avatar Oct 10 '21 19:10 mirenradia

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

psifidotos avatar Oct 14 '21 14:10 psifidotos

  • 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

mirenradia avatar Oct 16 '21 21:10 mirenradia

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

a-parhom avatar Dec 12 '21 23:12 a-parhom

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

tohurtv avatar Jan 18 '22 20:01 tohurtv

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.

mirenradia avatar Jan 18 '22 22:01 mirenradia

I can confirm the same behavior on latte dock 0.10.8

aliquo93 avatar Feb 10 '22 20:02 aliquo93

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

psifidotos avatar Feb 12 '22 06:02 psifidotos

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

michaldybczak avatar Feb 12 '22 15:02 michaldybczak

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.

michaldybczak avatar Feb 12 '22 20:02 michaldybczak

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

murakami-marco avatar Feb 24 '22 22:02 murakami-marco

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

simply1233 avatar Jun 20 '22 15:06 simply1233

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

virtual-designer avatar Jun 08 '23 10:06 virtual-designer

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

saaivignesh20 avatar Sep 23 '23 18:09 saaivignesh20

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...

Gpinchon avatar Apr 07 '24 11:04 Gpinchon

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.

RannyArcher avatar Jun 01 '24 14:06 RannyArcher