Bug 337044 - Mouse Mark smoothing
Summary: Mouse Mark smoothing
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: 4.11.11
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-04 12:58 UTC by DrSlony
Modified: 2021-10-24 16:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DrSlony 2014-07-04 12:58:49 UTC
Mouse Mark is a great effect, but it looks quite ugly. Could you implement some sort of smoothing? At least antialiasing, but also general smoothing of the shape would be nice.

http://i.imgur.com/Dnz6Yfr.png


Reproducible: Always
Comment 1 Vlad Zahorodnii 2018-08-09 19:52:48 UTC
Git commit 99804e0233cbb1054b1b1f5148dc5c7a6833a709 by Vlad Zagorodniy.
Committed on 09/08/2018 at 19:52.
Pushed by vladz into branch 'master'.

[effects/mousemark] Properly use GL_LINE_SMOOTH

Summary:
We need to enable GL_BLEND for line smoothing to work.

Test Plan:
Before:
{F6184072, layout=center, size=full}

After:
{F6184074, layout=center, size=full}

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14714

M  +5    -0    effects/mousemark/mousemark.cpp

https://commits.kde.org/kwin/99804e0233cbb1054b1b1f5148dc5c7a6833a709
Comment 2 Vlad Zahorodnii 2018-08-26 17:50:37 UTC
OpenGL line smoothing is not really good. It would be great to use QPainter to draw lines.

I've tried today to use an overlay window to draw mouse marks:
https://github.com/zzag/kwin/tree/qml-mousemark-effect

It kinda works
https://photos.app.goo.gl/eLWMphR8xRqqjGmQ6

but I don't have much time to finish work on that patch.