[PATCH] applets/notification: fix fullRepresentation-only widgets
authorChristoph Wolk <cwo.kde@posteo.net>
Sat, 10 May 2025 17:10:30 +0000 (19:10 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Mon, 21 Jul 2025 16:21:10 +0000 (18:21 +0200)
commit6b3c7e72b6bc590145166d9cc82bcbad78fea7b2
tree752214a572b3c62083fa9214553257bf1cc5b171
parenteb977010a8a6de4e590f9c426e1fb57a2f9a2b75
[PATCH] applets/notification: fix fullRepresentation-only widgets

The fullRepresentation has a little efficiency trick: it unloads the
model while it is not expanded, so the ListView does not need to be
updated while it is not visible. In general this is fine, but it
interacts very badly with attempts to put the fullRepresentation
directly on the desktop (or in a very large panel) and the auto-closing
functionality of the notification applet. When the notification history
ever becomes empty, it tries to close the fullRepresentation by setting
expanded to false, which by itself does not do any harm either (the
fullRepresentation stays a fullRepresentation), but it does unload the
model, so the history never updates again (unless the user manually
resizes it to become too small for the fullRepresentation then back
again, which resets it to its proper expanded state).

Instead, we modify closePlasmoid() to only set expanded to false if the
widget is below either switchWidth or switchHeight.

BUG: 503815
FIXED-IN: 6.4.0

Gbp-Pq: Name upstream_142caad0_applets-notification-fix-fullRepresentation-only-widgets.patch
applets/notifications/package/contents/ui/main.qml