Bug 472360 - Calendar widget changes date when moving across screens
Summary: Calendar widget changes date when moving across screens
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Calendar widget (other bugs)
Version First Reported In: 5.27.6
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Antti Savolainen
URL:
Keywords: multiscreen
: 484001 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-07-18 14:19 UTC by Álvaro M.
Modified: 2026-08-21 13:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.7.5
Sentry Crash Report:


Attachments
Video of how the calendar's date starts increasing with every movement across screens (3.39 MB, video/x-matroska)
2023-07-18 14:19 UTC, Álvaro M.
Details
Confirmation of bug in plasma 6.3.1 (887.11 KB, video/mp4)
2025-02-23 18:29 UTC, Álvaro M.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Álvaro M. 2023-07-18 14:19:43 UTC
Created attachment 160362 [details]
Video of how the calendar's date starts increasing with every movement across screens

SUMMARY
When moving the calendar widget across screens, the date increases with each movement.

STEPS TO REPRODUCE
1. Have 2 monitors with and extended setup
2. Move a calendar widget between them several times

OBSERVED RESULT
The date in the calendar starts increasing with each movement.

EXPECTED RESULT
Date should not move.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Wayland
Comment 1 ratijas 2023-09-07 18:24:57 UTC
Can confirm.

Side note: changing dates in this applet by dragging is known to be quite buggy. Maybe it's just another manifestation of the same underlying bug.
Comment 2 Nate Graham 2023-09-11 21:40:03 UTC
Probably the drag handler that switches the view is conflicting with the drag handler that moves it.

FWIW I can't reproduce the issue in Plasma 6 by doing the exact same thing depicted in the screen recording (including rotating the widget) before dragging across screens.
Comment 3 Nate Graham 2024-04-11 01:55:19 UTC
*** Bug 484001 has been marked as a duplicate of this bug. ***
Comment 4 Álvaro M. 2025-02-23 18:29:36 UTC
Created attachment 178780 [details]
Confirmation of bug in plasma 6.3.1

Still happening in plasma 6.3.1. Fedora 41 up to date.
Comment 5 Antti Savolainen 2025-11-19 22:07:50 UTC
Still happens. What's interesting is that the date jumps forward by 1 month and 11 years every time I make it switch displays
Comment 6 Antti Savolainen 2026-06-25 21:00:52 UTC
Adding `changeDate = false;` to here https://invent.kde.org/plasma/plasma-workspace/-/blob/master/components/calendar/qml/InfiniteList.qml?ref_type=heads#L78 stops the view from changing when moving it across screens, but it also stops you from changing the view manually. I don't know enough to proceed on my own.
Comment 7 Bug Janitor Service 2026-06-25 21:30:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6802
Comment 8 Bug Janitor Service 2026-06-25 21:30:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6802
Comment 9 Nate Graham 2026-08-17 20:40:34 UTC
Git commit d610eac44f25b7208aae743043a4cdf56fec4310 by Nate Graham, on behalf of Antti Savolainen.
Committed on 17/08/2026 at 19:36.
Pushed by ngraham into branch 'master'.

InfiniteList: fix calendar changing views when dragging it between displays

When dragging the calendar between displays, the view jumps one month and
11 years. This is because during the reparenting of the widget the width
and height briefly goes to 0. The widget interprets this as the view
having reached the edge on the month, year, and decade views, resulting
in said time jump. Might be possible to fix the root cause within the
shell in the future.

Previously the code ate one event at startup to prevent it from jumping
when dragging the widget to desktop.

M  +5    -10   components/calendar/qml/InfiniteList.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/d610eac44f25b7208aae743043a4cdf56fec4310
Comment 10 Nate Graham 2026-08-17 22:18:40 UTC
Git commit 41b84a1be8503f73ebdb017e49137f924abebe3c by Nate Graham.
Committed on 17/08/2026 at 21:17.
Pushed by ngraham into branch 'Plasma/6.7'.

InfiniteList: fix calendar changing views when dragging it between displays

When dragging the calendar between displays, the view jumps one month and
11 years. This is because during the reparenting of the widget the width
and height briefly goes to 0. The widget interprets this as the view
having reached the edge on the month, year, and decade views, resulting
in said time jump. Might be possible to fix the root cause within the
shell in the future.

Previously the code ate one event at startup to prevent it from jumping
when dragging the widget to desktop.


(cherry picked from commit d610eac44f25b7208aae743043a4cdf56fec4310)

Co-authored-by: Antti Savolainen <antti.savo@gmail.com>

M  +5    -10   components/calendar/qml/InfiniteList.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/41b84a1be8503f73ebdb017e49137f924abebe3c