D5249: [RFC] New effect plugin - projector (keystone) correction

Nicolás Alvarez noreply at phabricator.kde.org
Wed Apr 12 04:38:44 UTC 2017


nalvarez added inline comments.

INLINE COMMENTS

> nowicki wrote in projector.cpp:101-126
> The reason for taking over cursor drawing is that when transformation is applied the pointer pixmap doesn't match the point where the cursor actually hits the windows below it. Since there is no way to apply translation to the HW cursor position drawing a SW cursor is the only way to make the mouse usable with tranformation applied.

I think it would be acceptable if the cursor is drawn just like it is now, on its own layer, even if drawing it without the transformation would make it slightly deformed visually.

You just have to ensure mouse //events// are properly inverse-transformed so that they go to the right place in the window. Isn't this already done for some effects? Isn't it possible to scale a window and keep interacting with it?

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D5249

To: nowicki, #plasma, graesslin
Cc: nalvarez, luebking, kwin, plasma-devel, #kwin, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170412/d9fdd4fe/attachment.html>


More information about the Plasma-devel mailing list