luisbocanegra / plasma-panel-colorizer

Latte-Dock and WM status bar customization features for the default KDE Plasma panel
https://store.kde.org/p/2130967
GNU General Public License v3.0
232 stars 3 forks source link

[Bug]: Taskbar items are not clickable after using Panel colorizer to customize the panel #100

Closed HattoriSuzuki closed 1 month ago

HattoriSuzuki commented 1 month ago

Describe the bug Taskbar items are not clickable after using Panel colorizer to customize the panel

To Reproduce Steps to reproduce the behavior:

  1. Use Panel colorizer to customize the panel
  2. Reboot the system or logout then login again.
  3. All task bar items (except the first one) are no longer clickable.
  4. See the attachment for screencast only-the-first-item-is-clickable.webm

Expected behavior All items should be clickable.

Screencast only-the-first-item-is-clickable.webm

Project version 1.0.0

Desktop (please complete the following information):

Additional context None

luisbocanegra commented 1 month ago

Found the reason I think, can you enter edit mode, move the Task manager to the right then re-enable Native Panel background from Appearance tab. Then reboot/restart plasma and check if the problem persists?

I replicated your panel layout and that option seems to be what's causing this, also it seems the clicks go through as if there was not panel in there

HattoriSuzuki commented 1 month ago

@luisbocanegra You are right, regardless panel layout, disabling the Native Panel background option causes the issue.

luisbocanegra commented 1 month ago

Looks like https://bugs.kde.org/show_bug.cgi?id=489086 but us disabling the panel background somehow makes it worse, as if the panel mask (the blur and contrast) was also needed to define the clickable area of the panel.

luisbocanegra commented 1 month ago

Do you have that bug too? This is what the panel look like every boot with that bug: image

HattoriSuzuki commented 1 month ago

@luisbocanegra hmm, looks like I'm having the same bug, I described my bug here https://www.reddit.com/r/kde/comments/1g79i1c/kde_plasma_62_panel_displays_incorrectly_after_a/

luisbocanegra commented 1 month ago

Yes it is the same bug, but the panel not being clickable is apparently a different issue related to the mask being turned off as this can be still reproduced by

  1. Disabling the native panel background
  2. Making the panel size grow by launching a bunch of apps
  3. At this point, the widgets close to the right side of the panel aren't clickable,
  4. Toggling the background on makes them clickable again
cyberkunju commented 1 month ago

am having the same issue. when ever i restart my pc the dock applications will disappear. and also i cant open that apps. Help me to solve this.!

cyberkunju commented 1 month ago

Screenshot_20241020_144515 this after i setup. and when i restart the pc it will show like this Screenshot_20241020_144717

What to do? @luisbocanegra any fix please? i really want this setup. dont know if the problem is because i set panel colourizer for my top bar and also for the dock at the same time.

cyberkunju commented 1 month ago

currently mine is solved. i just turn on native background and make the opacity 0. but please fix the bug,

luisbocanegra commented 1 month ago

@cyberkunju just to clarify, the panel being shrunk like that is a KDE bug, the panel clickable area not being updated is caused by this widget when the native background is disabled.

I have an idea of a possible workaround for the shrink issue while KDE fixes it, but for the click problem I will have to look at the KDE panel's code to see if it's a bug on their end or something I have to do to avoid it.

Currently the only way to avoid the click problem are

luisbocanegra commented 1 month ago

@HattoriSuzuki @cyberkunju

Added a workaround for both the upstream length bug (https://bugs.kde.org/show_bug.cgi?id=489086) and the click issue (which might also be a KDE bug but need to investigate this one further to come up with a proper fix)

Please try the branch https://github.com/luisbocanegra/plasma-panel-colorizer/tree/startup-length-and-clickable-area-workaround

git clone https://github.com/luisbocanegra/plasma-panel-colorizer.git -b startup-length-and-clickable-area-workaround
cd plasma-panel-colorizer
kpackagetool6 -t Plasma/Applet -u package

Restart plasmashell/logout and let me know if it works

luisbocanegra commented 1 month ago

Screencast_20241020_204547.webm

HattoriSuzuki commented 1 month ago

Thank you @luisbocanegra, the workaround works great!

luisbocanegra commented 1 month ago

Thank you @luisbocanegra, the workaround works great!

Thanks for the confirmation, if you are any freezes or plasmashell crashes after this change please let me know. I had a couple yesterday but not sure if it's related to this change or something else on my system.

deviaze commented 1 month ago

Thanks!! Also had this same issue where none of my panels were clickable after a restart. Looks like this workaround fixed it... for now.

OS: EndeavourOS (Arch Linux) Plasma: 6.2 Wayland

luisbocanegra commented 1 month ago

Merged, thanks everyone for testing