Replace Wayland/XDG outputs checks with enablement checks
ClosedPublic

Authored by romangg on Aug 28 2019, 11:43 PM.

Details

Summary

Make it more explicit what the relation is between Wayland and XDG objects
existing and enablement:

The ouput is enabled if and only if Wayland and XDG output objects exist.

We can simplify the code by replacing checks on the outputs with checking
the current enablement value.

Test Plan

Wayland nested and virtual backends.

Diff Detail

Repository
R108 KWin
Branch
enableOutputCheck
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 15818
Build 15836: arc lint + arc unit
romangg created this revision.Aug 28 2019, 11:43 PM
Restricted Application added a project: KWin. · View Herald TranscriptAug 28 2019, 11:43 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
romangg requested review of this revision.Aug 28 2019, 11:43 PM
romangg planned changes to this revision.Aug 29 2019, 10:08 AM

In order to not send wl_output data changes needlessly often this needs some more work on init.

romangg updated this revision to Diff 64945.Aug 29 2019, 1:54 PM
  • Init Wayland output with device output
romangg updated this revision to Diff 64949.Aug 29 2019, 2:33 PM

Rebase on master.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 5 2019, 3:29 PM
This revision was automatically updated to reflect the committed changes.