Bug 248570 - Windows snap to panel's shadow
Summary: Windows snap to panel's shadow
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: containment-panel (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 246622 248953 256632 271023 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-21 06:21 UTC by Nikita Churaev
Modified: 2011-05-28 14:25 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.0


Attachments
Shadow snap (16.03 KB, image/png)
2011-01-28 13:25 UTC, FiNeX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Churaev 2010-08-21 06:21:07 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux



Reproducible: Always

Steps to Reproduce:
1. Ensure you're using Air theme and panel has a shadow
2. Open some window
3. Move it towards panel

Actual Results:  
It first sticks to panel's shadow, then to panel.

Expected Results:  
It should just stick to panel.
Comment 1 Martin Flöser 2010-08-21 07:32:53 UTC
I knew we need a real solution...
Comment 2 AngryKoala 2010-08-25 08:16:28 UTC
*** Bug 248953 has been marked as a duplicate of this bug. ***
Comment 3 Martin Flöser 2010-08-26 21:32:55 UTC
*** Bug 246622 has been marked as a duplicate of this bug. ***
Comment 4 Beat Wolf 2010-09-21 23:44:26 UTC
should this be reassinged to kwin?
Comment 5 Martin Flöser 2010-11-11 21:35:52 UTC
*** Bug 256632 has been marked as a duplicate of this bug. ***
Comment 6 Ralf Jung 2010-11-12 08:13:14 UTC
I can not even see the shadow the window is supposedly snapping to - is there any way to configure it?
Comment 7 FiNeX 2011-01-28 13:25:23 UTC
Created attachment 56568 [details]
Shadow snap

Just reproduced using a fresh KDE 4.6 installation.
Comment 8 Jimmy Kloss 2011-01-30 16:04:12 UTC
This seems to be a problem with certain plasma themes, which draw shadows on their own e.g. Air or Oxygen. Optional plasma themes r.g. Ghost don't have this problem.

Why does the panel even have a shadow? I disabled shadows under "Window Decoration" and "Desktop Effects". A unification is desirable.

(reproduced with 4.5 & 4.6 on gentoo & kubuntu)
Comment 9 Thomas Lübking 2011-04-15 14:50:59 UTC
*** Bug 271023 has been marked as a duplicate of this bug. ***
Comment 10 Thomas Lübking 2011-04-15 14:56:49 UTC
The problem is that the visual appeal of the panel window does not match the technical one.
The window is translucent and the "shadow" is actually part of the window (ie. it's not an extra window nor part of the compositor)

The WM you at best detect that there's some translucent blackish area in the window, guess that's a shadow and ... well this is super expensive and the result at best "heuristically" suboptimal

The theme has to tell the containment about what's the "panel" part and what's the "shadow" part and the containment window has to alter the strut in accordance.
This should then immediately work with all WMs.
Comment 11 Martin Flöser 2011-04-15 16:36:15 UTC
At Tokamak I will "force" Marco to change the implementation to use KWin's new shadow system. This is the proper approach to the problem.
Comment 12 Martin Flöser 2011-05-28 14:25:32 UTC
Fixed with the new Shadow system in KWin and Plasma.