Bug 399793

Summary: Corner resize cursor reverts to Adwaita after 5.14 with every cursor theme
Product: [Plasma] kwin Reporter: Stefano <gisk+kdebugs>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: arojas, kde, nasashinega
Priority: NOR    
Version First Reported In: 5.14.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Konsole with cursor on top left corner

Description Stefano 2018-10-14 14:00:24 UTC
Created attachment 115638 [details]
Konsole with cursor on top left corner

SUMMARY
After the update from plasma 5.13 to 5.14 every cursor theme falls back to the Adwaita theme when hovering the windows corners. This happens with every decoration and every cursor theme.
I have this issue on my Archlinux installation, but not on my Neon.

STEPS TO REPRODUCE
Update to 5.15, move the cursor to the corners of a windows.

OBSERVED RESULT
The cursor turn to the Adwaita theme version.

EXPECTED RESULT
The cursor keeps the current theme version.

SOFTWARE VERSIONS
Arch Linux 
KDE Plasma: 5.14.0
Qt: 5.11.2
KDE Frameworks: 5.50.0
Kernel: 4.18.12-arch1-1-ARCH

ADDITIONAL INFORMATION
Nvidia gfx card with proprietary drivers.
Comment 1 Martin Flöser 2018-10-14 15:08:04 UTC
Your system default cursor theme is used and the cursor themes you use do not provide these cursors. So far this is expected behavior of xcursor resolving. You need to change your system cursor theme to trigger KWin's internal fallback mechanism.
Comment 2 Stefano 2018-10-14 17:02:12 UTC
(In reply to Martin Flöser from comment #1)
> Your system default cursor theme is used and the cursor themes you use do
> not provide these cursors. So far this is expected behavior of xcursor
> resolving. You need to change your system cursor theme to trigger KWin's
> internal fallback mechanism.

I tried that, but the issue remains. The cursor theme I'm using is Breeze and it started falling back to adwaita only after updating Plasma 5.13 to 5.14.
Comment 3 Antonio Rojas 2018-10-14 17:49:04 UTC
(In reply to Stefano from comment #2)
> (In reply to Martin Flöser from comment #1)
> > Your system default cursor theme is used and the cursor themes you use do
> > not provide these cursors. So far this is expected behavior of xcursor
> > resolving. You need to change your system cursor theme to trigger KWin's
> > internal fallback mechanism.
> 
> I tried that, but the issue remains. The cursor theme I'm using is Breeze
> and it started falling back to adwaita only after updating Plasma 5.13 to
> 5.14.

This is an intentional change

https://cgit.kde.org/kwin.git/commit/?id=5b4eb80c8fdb6ea72c6046389578421b00824c6f

kwin uses cursor icons which are not implemented in breeze, so it uses Adwaita's ones if you have it installed.
Comment 4 Stefano 2018-10-14 19:58:32 UTC
(In reply to Antonio Rojas from comment #3)
> (In reply to Stefano from comment #2)
> > (In reply to Martin Flöser from comment #1)
> > > Your system default cursor theme is used and the cursor themes you use do
> > > not provide these cursors. So far this is expected behavior of xcursor
> > > resolving. You need to change your system cursor theme to trigger KWin's
> > > internal fallback mechanism.
> > 
> > I tried that, but the issue remains. The cursor theme I'm using is Breeze
> > and it started falling back to adwaita only after updating Plasma 5.13 to
> > 5.14.
> 
> This is an intentional change
> 
> https://cgit.kde.org/kwin.git/commit/
> ?id=5b4eb80c8fdb6ea72c6046389578421b00824c6f
> 
> kwin uses cursor icons which are not implemented in breeze, so it uses
> Adwaita's ones if you have it installed.

Thanks for the answer. So, to overcome this issue, the breeze cursor theme must be updated with some new icons for the corners?
Comment 5 Antonio Rojas 2018-10-14 20:06:02 UTC
(In reply to Stefano from comment #4) 
> Thanks for the answer. So, to overcome this issue, the breeze cursor theme
> must be updated with some new icons for the corners?

Yes - in the meantime you can work around it by removing 'Inherits=adwaita' from /usr/share/icons/default/index.theme
Comment 6 Christoph Feck 2018-10-15 01:39:05 UTC
Might be related to/duplicate of bug 399194.
Comment 7 David Edmundson 2018-10-15 07:43:06 UTC
I opened a relevant breeze bug 395247 when I added kwin corner cursor icons.

I had added fallback to the generic diagonal resize if an icon theme for ne/se/sw/nw icon isn't available, but because Breeze falls back to adwaita it is available; albeit in the wrong theme. I don't think there's another solution inside kwin.