Only send OutputConfig sendApplied / sendFailed to the right resource

Authored by davidedmundson on Sep 21 2017, 1:11 PM.

Description

Only send OutputConfig sendApplied / sendFailed to the right resource

Summary:
I don't understand the original logic.
s_allResources contains /every/ resource, not just outputconfigurations.

Sending org_kde_kwin_outputconfiguration_send_applied to a wl_surface (for example),
results in an error.

The reason kwin doesn't currently crash is because we don't actually send
applied/failed after setting outputs. (which is another bug)

Test Plan: The existing unit test still passes.

Reviewers: Plasma, sebas

Reviewed By: Plasma, sebas

Subscribers: sebas, plasma-devel, Frameworks

Tags: Plasma on Wayland, Frameworks

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

Details

Committed
davidedmundsonSep 21 2017, 1:11 PM
Reviewer
Plasma
Differential Revision
D7898: Only send OutputConfig sendApplied / sendFailed to the right resource
Parents
R127:30883d3adc67: Add missing command macro
Branches
Unknown
Tags
Unknown