Bug 403780 - Panel shadow appears after clicking on plasmoid with drop-down list
Summary: Panel shadow appears after clicking on plasmoid with drop-down list
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-30 20:34 UTC by Mikhail Zolotukhin
Modified: 2019-02-03 19:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Demonstration of the bug on the global menu plasmoid (343.21 KB, video/mp4)
2019-01-30 20:34 UTC, Mikhail Zolotukhin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zolotukhin 2019-01-30 20:34:30 UTC
Created attachment 117747 [details]
Demonstration of the bug on the global menu plasmoid

SUMMARY
When we click on plasmoid with drop-down list/menu (e.g. Application Menu, Global Menu, System Tray etc.), even if the panel shadow if off, it becomes visible. When the drop-down menu is collapsed, the shadow is invisible again, as expected. 

STEPS TO REPRODUCE
1. Turn off the panel shadow (Appearance - Background - The "shadow" button is unpressed)
2. Add a plasmoid with drop-down list to dock/panel
3. Click on that plasmoid with left mouse button

OBSERVED RESULT
Panel now has a shadow.

EXPECTED RESULT
Panel shouldn't have a shadow, because we turned it off in the settings.

SOFTWARE/OS VERSIONS
Latte Dock: 0.8.75 (git)
Linux/KDE Plasma: 
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Also I compiled from source this kwin patch (https://github.com/alex47/KDE-Rounded-Corners), which rounds corners of borderless windows, but due a bug in this patch it also makes corners round on other entities (not only windows), so when I click on a plasmoid with a drop-down list panel now have round corners too. Maybe a shadow and round corners appears due the same reason.
Comment 1 Michail Vourlakos 2019-01-30 21:31:26 UTC
(In reply to zomial from comment #0)
> Created attachment 117747 [details]
> Demonstration of the bug on the global menu plasmoid
> 
> SUMMARY
> When we click on plasmoid with drop-down list/menu (e.g. Application Menu,
> Global Menu, System Tray etc.), even if the panel shadow if off, it becomes
> visible. When the drop-down menu is collapsed, the shadow is invisible
> again, as expected. 
>

concerning the applets pop-ups such as System tray, calendars, Application Launchers etc. this is intentional because all of these popups contain shadows from the plasma theme and as such for consistency Latte also draws them


for the Global Menu I agree the effect is not that nice and the shadow shouldnt be drawn, probably a blacklist for that applet should take place...
Comment 2 Michail Vourlakos 2019-02-03 19:46:43 UTC
Git commit 53b590470687a89bd657cee5e3558f6b4f6e1565 by Michail Vourlakos.
Committed on 03/02/2019 at 19:44.
Pushed by mvourlakos into branch 'master'.

dont enforce background shadow for menu plasmoids

--dont enforce background shadow for global menu
plasmoids such as AWC, plasma appmenu, window appmenu

M  +2    -0    containment/package/contents/ui/main.qml

https://commits.kde.org/latte-dock/53b590470687a89bd657cee5e3558f6b4f6e1565