Bug 442282 - Dragging Digital Clock from desktop onto Panel results in visual corruption until plasmashell is restarted
Summary: Dragging Digital Clock from desktop onto Panel results in visual corruption u...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (show other bugs)
Version: git-master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-10 21:07 UTC by Piotr Mierzwinski
Modified: 2021-09-18 01:04 UTC (History)
3 users (show)

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


Attachments
lasma-broken-Digital_Clock (8.12 KB, image/png)
2021-09-10 21:09 UTC, Piotr Mierzwinski
Details
broken clock after move it from desktop (865.34 KB, video/x-matroska)
2021-09-16 19:54 UTC, Piotr Mierzwinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2021-09-10 21:07:03 UTC
SUMMARY
When you move Digital Clock onto desktop and want you put it back to Panel then turns out that on Panel we get trashes (check screen shot). To get visually correct Digital Clock need to drag and drop it directly from Widgets side bar.
I use vertical panel and didn't test it on horizontal one.

STEPS TO REPRODUCE
1. Turn on "Edit Panel"
2. Move Digital Clock onto desktop (isn't possible to put is anywhere, because it will stuck very close to the panel)
3. Move back (Drag and Drop) Digital Clock from Desktop onto Panel


OBSERVED RESULT
we get visually broken Digital Clock, seems like could chosen some strange font. Clock is not readable

EXPECTED RESULT
Digital Clock when backs onto the panel should look like before we moved it onto desktop

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
In test I used up-do-date Neon on day: 2021/09/10, 23:02
Comment 1 Piotr Mierzwinski 2021-09-10 21:09:15 UTC
Created attachment 141459 [details]
lasma-broken-Digital_Clock
Comment 2 Piotr Mierzwinski 2021-09-10 21:12:06 UTC
Notice that changing "Font style" in Digital Clock settings helps nothing. Still we can see visually broken digital clock.
Comment 3 Piotr Mierzwinski 2021-09-10 21:14:24 UTC
Sign out -> Sign in, just helps.
Comment 4 Nate Graham 2021-09-16 19:04:29 UTC
Are you using an NVIDIA GPU?
Comment 5 Piotr Mierzwinski 2021-09-16 19:07:50 UTC
(In reply to Nate Graham from comment #4)
> Are you using an NVIDIA GPU?

No. I use integrated Intel graphics card.
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
Comment 6 Piotr Mierzwinski 2021-09-16 19:21:12 UTC
And PC, where tested originally.
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
Comment 7 Piotr Mierzwinski 2021-09-16 19:54:42 UTC
Created attachment 141615 [details]
broken clock after move it from desktop

At attached movie look how reproduce issue.

BTW. 
Notice please that font in date (set as 'custom') s not scaled, because has been wrapped.
Comment 8 Nate Graham 2021-09-17 16:47:45 UTC
Thanks for the video. I can reproduce the issue with my own Intel 620 GPU.
Comment 9 David Edmundson 2021-09-17 23:37:05 UTC
It's not a bug at our level, it will require someone writing a reproducible case for Qt.

Generally moving items between windows is a bad idea; we do have the option of destructing and constructing the applet when we move into the panel.
Comment 10 Nate Graham 2021-09-18 01:04:47 UTC
(In reply to David Edmundson from comment #9)
> Generally moving items between windows is a bad idea; we do have the option
> of destructing and constructing the applet when we move into the panel.
As long as the applet-specific settings are preserved, that would work.