Bug 434213

Summary: Shadow of maximized window spills to the "next" screen
Product: [Plasma] kwin Reporter: Albert Astals Cid <aacid>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: gwerner, mat69, nate, plasma-bugs
Priority: NOR    
Version: 5.21.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.22.1

Description Albert Astals Cid 2021-03-10 00:01:00 UTC
SUMMARY


STEPS TO REPRODUCE
1. Have two screens set to extend the desktop
2. Have maximized windows on the two screens, i tried konsole on left, firefox on right
3. Set the focus on konsole 

OBSERVED RESULT

I can see the window shadow of konsole on top of the firefox window on the other screen.

I'd say it doesn't make much sense to do that (at least for maximized windows)

EXPECTED RESULT

No shadow spilling over screens.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.21.2 + wayland
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 1 Bug Janitor Service 2021-06-04 14:58:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1069
Comment 2 Vlad Zahorodnii 2021-06-04 15:14:50 UTC
Git commit 8c8098a61c8990076f6d0866d662ab7980e49dc7 by Vlad Zahorodnii.
Committed on 04/06/2021 at 14:57.
Pushed by vladz into branch 'master'.

Move X11Client::wantsShadowToBeRendered to AbstractClient

Otherwise only X11 windows will lose server-side drop-shadows when the
maximized mode changes.

M  +5    -0    src/abstract_client.cpp
M  +1    -0    src/abstract_client.h
M  +0    -5    src/x11client.cpp
M  +0    -1    src/x11client.h

https://invent.kde.org/plasma/kwin/commit/8c8098a61c8990076f6d0866d662ab7980e49dc7
Comment 3 Vlad Zahorodnii 2021-06-04 15:17:49 UTC
Git commit c5b4ede345a3272402578d45d40ba8abdde593f6 by Vlad Zahorodnii.
Committed on 04/06/2021 at 15:17.
Pushed by vladz into branch 'Plasma/5.22'.

Move X11Client::wantsShadowToBeRendered to AbstractClient

Otherwise only X11 windows will lose server-side drop-shadows when the
maximized mode changes.


(cherry picked from commit 8c8098a61c8990076f6d0866d662ab7980e49dc7)

M  +5    -0    src/abstract_client.cpp
M  +1    -0    src/abstract_client.h
M  +0    -5    src/x11client.cpp
M  +0    -1    src/x11client.h

https://invent.kde.org/plasma/kwin/commit/c5b4ede345a3272402578d45d40ba8abdde593f6
Comment 4 Podagric 2021-06-19 14:43:45 UTC
*** Bug 312865 has been marked as a duplicate of this bug. ***
Comment 5 Podagric 2021-06-19 14:44:01 UTC
*** Bug 278697 has been marked as a duplicate of this bug. ***