[server] Properly initialize Cursor
ClosedPublic

Authored by graesslin on Feb 24 2016, 3:50 PM.

Details

Summary

The Cursor wasn't properly initialized. E.g. the damage signal didn't
get connected resulting in the server not noticing when the cursor
changes. The damage only got connected if a new cursor got instelled by
the client on the same pointer.

This change ensures that the Cursor is properly initialized by calling
into the same method as when the cursor changed.

The tests are extended by a new test case for damaging the surface.

Diff Detail

Repository
R127 KWayland
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 2457.Feb 24 2016, 3:50 PM
graesslin retitled this revision from to [server] Properly initialize Cursor.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 24 2016, 3:50 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bshah accepted this revision.Feb 25 2016, 8:36 AM
bshah added a reviewer: bshah.
This revision is now accepted and ready to land.Feb 25 2016, 8:36 AM
This revision was automatically updated to reflect the committed changes.