Bug 495306 - An active sticky note resizes most reboots / logins
Summary: An active sticky note resizes most reboots / logins
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notes widget (other bugs)
Version First Reported In: 6.1.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 499050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-10-24 14:44 UTC by dave
Modified: 2025-05-12 20:42 UTC (History)
9 users (show)

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


Attachments
Example of sticky note before demonstrating bug (214.12 KB, image/png)
2024-10-30 23:26 UTC, dave
Details
After a log out and log in, the sticky has resized (355.57 KB, image/png)
2024-10-30 23:27 UTC, dave
Details
This example is rotated, placed at top right of left hand screen. (62.20 KB, image/png)
2024-10-30 23:31 UTC, dave
Details
The rotated sticky after screenshot (188.04 KB, image/png)
2024-10-30 23:33 UTC, dave
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dave 2024-10-24 14:44:45 UTC
I usual keep just one note active and have not experimented to see what happens with multiple notes open, or any other widgets.  I have it rotated, and on screen appears about 2cm x 3cm.  After most reboots, it looks 1:1 and about 10cm.  It retains the angle.  If you consider an oblong formed by horizontal and vertical lines that the rotated note fits in before malformation, it looks like the top right corner of this area is anchored while the rest of it changes, based on the location of the note before and after reboot.
Comment 1 Nate Graham 2024-10-28 04:10:48 UTC
The widget is on the desktop, right?

Can you take before and after screenshots?

Is this a multi-monitor system?

Are there any icons also on the desktop?

Is your panel always visible or auto hide? If it's always visible, does the problem go away if you make it auto-hide?
Comment 2 dave 2024-10-30 23:26:50 UTC
Created attachment 175384 [details]
Example of sticky note before demonstrating bug
Comment 3 dave 2024-10-30 23:27:26 UTC
Created attachment 175385 [details]
After a log out and log in, the sticky has resized
Comment 4 dave 2024-10-30 23:31:14 UTC
Created attachment 175386 [details]
This example is rotated, placed at top right of left hand screen.

The two screens are 1920*1080 and are slightly offset.  This screenshot shows top right of left screen and top left of right screen, as does the "after" screenshot, uploading next.
Comment 5 dave 2024-10-30 23:33:10 UTC
Created attachment 175387 [details]
The rotated sticky after screenshot

Notice how it keeps its rotation angle
Comment 6 dave 2024-10-30 23:38:14 UTC
(In reply to Nate Graham from comment #1)
> The widget is on the desktop, right?
> 
Yes
> Can you take before and after screenshots?
> 
Yes, done :)
> Is this a multi-monitor system?
> 
Dual monitor
> Are there any icons also on the desktop?
> 
Desktop icons are showing, sticky note widget can be close to them or not
> Is your panel always visible or auto hide? If it's always visible, does the
> problem go away if you make it auto-hide?
If I don't add a comment, you can assume it makes no difference.  Haven't tried it yet, will check soon.

Many thanks
Comment 7 Nate Graham 2024-10-31 22:46:01 UTC
Thanks for the info!
Comment 8 John Andrew McInnes 2024-11-17 19:45:14 UTC
I am experiencing this as well. Triple monitors. Just one sticky note. 

OS: openSUSE Tumbleweed 20241111 x86_64
Kernel: Linux 6.11.6-2-default
DE: KDE Plasma 6.2.3
WM: KWin (Wayland)
WM Theme: Breeze
Comment 9 latibulia 2024-11-26 02:46:48 UTC
I'm also experiencing this. A sticky note I've set to use narrow dimensions has a tendency to widen back out to its "default" width when I restart my computer or when Plasma restarts for some other reason.

I previously had a dual-monitor setup, but even after switching to a single ultrawide monitor the problem persists.

Let me know if there's any other info I can provide to help troubleshoot this!

OS: Kubuntu 24.10 (but this occasionally happened on 24.04 as well)
Kernel: Linux 6.11.0-9-generic (64-bit)
DE: KDE Plasma 6.1.5 (but occasionally happened on Plasma 5 as well)
WM: Both Wayland and X11
WM Theme: Breeze application style with elements/settings from a downloaded theme (Vivid-Dark-Plasma)
Comment 10 TraceyC 2024-11-26 18:21:19 UTC
I'm able to reproduce this on git-master, Wayland, with one sticky note
Laptop (1920x1080) connected to HDMI monitor (3440x1440)


- Created sticky note, made it small
- Connected the external monitor. Sticky was now on the external monitor, at its original size
- Rebooted
- Sticky note was on the external screen, and larger

I can also reproduce with just the laptop screen, with the same sticky not
- Make the sticky note as narrow as possible
- Reboot
- Sticky note is at the default size
Comment 11 Nate Graham 2024-11-26 21:34:25 UTC
(In reply to TraceyC from comment #10)
> I can also reproduce with just the laptop screen, with the same sticky not
> - Make the sticky note as narrow as possible
> - Reboot
> - Sticky note is at the default size

I can't get this to happen; it works fine for me with today's git master. Only real difference is a 2880x1900@2x laptop screen. I wonder if panel placement makes a difference? The screen has one left screen edge always-visible panel.
Comment 12 TraceyC 2024-11-27 19:17:49 UTC
Re-tested with today's git-master. Still able to reproduce

Added an always visible left hand panel on both the laptop and external displays
Both displays are at 100% scale
With HDMI monitor plugged in, made sticky note, which is on that display, narrow
Restarted plasma, sticky note got wide again 

I am not able to reproduce if I change the external display scale to 105% and restart plasma
If I set it back to 100% I can reproduce every time I restart plasma
Comment 13 krovikan 2025-04-14 10:25:07 UTC
As today, the issue is present yet.

In this thread of Discuss KDE I have all necessary information (screenshots included):
https://discuss.kde.org/t/plasma-cant-remember-the-size-of-plasmanotes/32350

I only have 1 monitor (2560x1440) connected to my graphics card (GTX 1070) via DP 1.4 at both ends.

Regards
Comment 14 M. Schlegel 2025-04-23 19:51:41 UTC
The bug title implies it needs a reboot. It doesn't, I can resize the Sticky Note to the size I want, logout of KDE and back in and the Note is back to the huge size I don't want.  So the Note doesn't remember the Width,Height of the note across reboots.

I'm seeing this on :

kinfo:
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.15.0-0.rc3.20250422gita33b5a08cbbd.29.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: AMD Radeon RX 5500M
Comment 15 dave 2025-04-23 21:54:19 UTC
Recently I reloaded my system, opted to use Wayland full time (mouse scroll related issues, used to work better in X11, now works better in Wayland).
After about 10 cycles of logout-login with a few reboots mixed in, the sticky stayed put.  I decided to test X11 and soon as I got in, the sticky resized.  I set it small again, logged out and back in, and it had gone back to large.
I went back to Wayland, did a couple of loops, sticky note not changing.
But I see there's others here experienced the issue in Wayland, so what gives?

OS: Kubuntu 25.04 x86_64 
DE: Plasma 6.3.4 [KF 6.12.0] [Qt 6.8.3] (wayland) WM: kwin_wayland_wr
CPU: 12th Gen Intel i7-12700 (20) @ 4.8GHz
GPU: NVIDIA GeForce RTX 3060 Ti Lite Hash Rate
Comment 16 krovikan 2025-04-23 21:59:21 UTC
I have the Issue and my kinfo is:

Operating System: openSUSE Tumbleweed 20250418
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070
Comment 17 M. Schlegel 2025-04-24 18:37:03 UTC
"So the Note doesn't remember the Width,Height of the note across reboots."

Sorry I really meant "So the Note *also* doesn't remember the Width,Height of the note across *logins*."
Comment 18 kde 2025-04-30 16:31:10 UTC
I'm also having this issue, seems to be reproducible 100% of the time. 

Plasma 6.3.4 (Wayland)
KDE Framework 6.13.0
QT Version 6.9.0
Kernel 6.14.3

AMD Ryzen 9 3950X
AMD Radeon RX 5700 XT
Comment 19 Nate Graham 2025-05-01 13:22:57 UTC
*** Bug 499050 has been marked as a duplicate of this bug. ***
Comment 20 cwo 2025-05-01 21:45:10 UTC
Git commit 4b4090d1a238f6f5c3aaae4e9838b02342c22b61 by Christoph Wolk.
Committed on 01/05/2025 at 21:40.
Pushed by cwo into branch 'master'.

applets/notes: don't set Layout preferred sizes

Currently, the fullRepresentation sets Layout.preferredSize. This gives
the widget a default size for the desktop representation or the panel
popup, but is much too eager on desktop - when the desktop layout is
recomputed (such as on plasmashell startup), it will try to give the
widget that size. If space for the preffered size is available in either
dimension, the widget size that the user chose will be overwritten by
the default size. Messing with the user's desktop widget arrangement in
this way is not nice; we should respect the user's choices where
possible.

Instead, set the width and height of the PlasmoidItem. A newly added
widget will use this for its default size, but will not override any
sizes the user chooses later.
FIXED-IN: 6.3.5

M  +3    -2    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/4b4090d1a238f6f5c3aaae4e9838b02342c22b61
Comment 21 cwo 2025-05-01 23:14:37 UTC
Git commit 564075fc5c8812cf2c3bb157c7cbefac57d185e0 by Christoph Wolk.
Committed on 01/05/2025 at 21:58.
Pushed by cwo into branch 'Plasma/6.3'.

applets/notes: don't set Layout preferred sizes

Currently, the fullRepresentation sets Layout.preferredSize. This gives
the widget a default size for the desktop representation or the panel
popup, but is much too eager on desktop - when the desktop layout is
recomputed (such as on plasmashell startup), it will try to give the
widget that size. If space for the preffered size is available in either
dimension, the widget size that the user chose will be overwritten by
the default size. Messing with the user's desktop widget arrangement in
this way is not nice; we should respect the user's choices where
possible.

Instead, set the width and height of the PlasmoidItem. A newly added
widget will use this for its default size, but will not override any
sizes the user chooses later.
FIXED-IN: 6.3.5


(cherry picked from commit 4b4090d1a238f6f5c3aaae4e9838b02342c22b61)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +3    -2    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/564075fc5c8812cf2c3bb157c7cbefac57d185e0