community/plasma-{workspace,desktop}: fix performance regression

Merged Bart Ribbers requested to merge PureTryOut/aports:plasma-performance-regression into master

The patches are suggested upstream and will be unnecessary once Plasma 5.19 hits.

Merge request reports