[Cursors] Remove Resolution Dependant option
ClosedPublic

Authored by bport on Apr 7 2020, 1:40 PM.

Details

Summary

This option don't work as expected for years on X, and current wayland protocol don't allow to have a proper size for all application (each framework came with this own solution for this option, that mean we will not have same cursor size on different application)

We set default size as 24

BUG: 385920
BUG: 413783

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bport created this revision.Apr 7 2020, 1:40 PM
Restricted Application added projects: Plasma, Documentation. · View Herald TranscriptApr 7 2020, 1:40 PM
Restricted Application added subscribers: kde-doc-english, plasma-devel. · View Herald Transcript
bport requested review of this revision.Apr 7 2020, 1:40 PM

what happens to users that have 0 written out in their config file already?

ngraham added a subscriber: ngraham.Apr 7 2020, 1:51 PM

For them I guess we'll need a kconf update file to migrate them to the new 24 value.

ngraham requested changes to this revision.Apr 7 2020, 1:57 PM
ngraham added inline comments.
kcms/mouse/backends/x11/x11_backend.cpp
138

intSize is no longer defines so it fails to build

This revision now requires changes to proceed.Apr 7 2020, 1:57 PM
bport updated this revision to Diff 79576.Apr 7 2020, 2:01 PM

fix build

bport planned changes to this revision.Apr 7 2020, 2:02 PM

For them I guess we'll need a kconf update file to migrate them to the new 24 value.

We will need to remove this entry we don't write default value
I will add a migration to be sure nobody have this kind of entry

ngraham added inline comments.Apr 7 2020, 2:02 PM
kcms/mouse/backends/x11/x11_backend.cpp
144–145

Would size ever be empty now (not a leading question; I'm genuinely asking)

144–145

And of course now this fails to build too since you can't call isEmpty on an int

Other related question.

What happens if we specify the size as being 24, but the icon set doesn't have that?

bport added inline comments.Apr 7 2020, 2:16 PM
kcms/mouse/backends/x11/x11_backend.cpp
144–145

No never be empty, not sure what I made there... looks like I reverted something before commiting

After locally fixing the compile error, applying this patch as well as all three others, and restarting KWin, I'm unfortunately seeing the bugs marked as fixed still happening: I change the cursor size, click Apply in the KCM, then the cursor size still changes back to the old size when hovering over the desktop, a KWin-drawn titlebar, or the header area of a System Settings KCM.

kcms/mouse/backends/x11/x11_backend.cpp
132

Does ./kcms/mouse/kapplymousetheme.cpp need to be updated as well?

bport updated this revision to Diff 79590.Apr 7 2020, 3:45 PM

Add migration to delete old default

bport added a comment.Apr 7 2020, 3:47 PM

After locally fixing the compile error, applying this patch as well as all three others, and restarting KWin, I'm unfortunately seeing the bugs marked as fixed still happening: I change the cursor size, click Apply in the KCM, then the cursor size still changes back to the old size when hovering over the desktop, a KWin-drawn titlebar, or the header area of a System Settings KCM.

I guess is another bug, can you test by restarting the session
The hot apply is still not working on wayland and still broken on X

Yes after restarting the session, the new cursor sized is fully applied everywhere. However 385920 413783 are about applying the cursor size everywhere immediately without having to restart the session, no?

bport added a comment.Apr 7 2020, 3:57 PM

For the wayland one at least I'm sure it's not that because without restarting session nothing happen
For the X one I didn't see anything related to apply on the bug report (but yes the apply bug exist)

ngraham accepted this revision.Apr 14 2020, 2:39 AM

But please remove the BUG: keywords for bugs that this patch does not actually fix (and ideally fix them in follow-up patches :) )

This revision is now accepted and ready to land.Apr 14 2020, 2:39 AM
This revision was automatically updated to reflect the committed changes.