Add way to hide/show cursor in Platform
ClosedPublic

Authored by graesslin on Oct 20 2016, 8:25 AM.

Details

Summary

Some platforms support to hide and show the cursor. This will be needed
by e.g. the zoom effect which currently only provides this functionality
on X11.

This change introduces a new method in the Platform to hide and show the
cursor. The methods need to be called balanced and the implementation
takes care of only showing again if all hide got matched by a show.

The actual hiding and showing is performed in the platform plugins. So
far the DRM and X11/Standalone platforms implement the required
functionality, though other platforms probably could implement as well.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 7561.Oct 20 2016, 8:25 AM
graesslin retitled this revision from to Add way to hide/show cursor in Platform.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptOct 20 2016, 8:25 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
mart accepted this revision.Oct 20 2016, 9:48 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Oct 20 2016, 9:48 AM
This revision was automatically updated to reflect the committed changes.