Skip to content

effects/magiclamp: Make it look good with floating panels

Vlad Zahorodnii requested to merge work/zzag/magic-lamp-floating-panel into master

The magic lamp literally "squashes" the window through the window icon in the task manager.

It's assumed that there's nothing below the panel, so the magic lamp doesn't perform any clipping.

With floating panels, it's not the case. So let's clamp the x or the y coordinates when the window moves horizontally or vertically, respectively, in order to ensure that the window is not visible in the gap between the floating panel and the screen edge.

BUG: 361121 BUG: 466177

references: plasma-desktop#73 (closed)

Edited by Vlad Zahorodnii

Merge request reports