use ScanoutCandidate kind for surfaces
Browse files at this commitaf9ce533100b49e8bc879b557ab830f5d3a18805Parent: 00445783 changed files +8 -8
- src/layer/mapped.rs +2 -2
- src/niri.rs +2 -2
- src/window/mapped.rs +4 -4
src/layer/mapped.rsmodified+2 -2
| @@ -195,7 +195,7 @@ impl MappedLayer { | ||
| 195 | 195 | (buf_pos + offset.to_f64()).to_physical_precise_round(scale), |
| 196 | 196 | scale, |
| 197 | 197 | alpha, |
| 198 | - Kind::Unspecified, | |
| 198 | + Kind::ScanoutCandidate, | |
| 199 | 199 | )); |
| 200 | 200 | } |
| 201 | 201 | |
| @@ -205,7 +205,7 @@ impl MappedLayer { | ||
| 205 | 205 | buf_pos.to_physical_precise_round(scale), |
| 206 | 206 | scale, |
| 207 | 207 | alpha, |
| 208 | - Kind::Unspecified, | |
| 208 | + Kind::ScanoutCandidate, | |
| 209 | 209 | ); |
| 210 | 210 | } |
| 211 | 211 |
src/niri.rsmodified+2 -2
| @@ -3747,7 +3747,7 @@ impl Niri { | ||
| 3747 | 3747 | pointer_pos, |
| 3748 | 3748 | output_scale, |
| 3749 | 3749 | 1., |
| 3750 | - Kind::Unspecified, | |
| 3750 | + Kind::ScanoutCandidate, | |
| 3751 | 3751 | )); |
| 3752 | 3752 | } |
| 3753 | 3753 | |
| @@ -4144,7 +4144,7 @@ impl Niri { | ||
| 4144 | 4144 | (0, 0), |
| 4145 | 4145 | output_scale, |
| 4146 | 4146 | 1., |
| 4147 | - Kind::Unspecified, | |
| 4147 | + Kind::ScanoutCandidate, | |
| 4148 | 4148 | )); |
| 4149 | 4149 | } |
| 4150 | 4150 |
src/window/mapped.rsmodified+4 -4
| @@ -587,7 +587,7 @@ impl LayoutElement for Mapped { | ||
| 587 | 587 | (buf_pos + offset.to_f64()).to_physical_precise_round(scale), |
| 588 | 588 | scale, |
| 589 | 589 | alpha, |
| 590 | - Kind::Unspecified, | |
| 590 | + Kind::ScanoutCandidate, | |
| 591 | 591 | )); |
| 592 | 592 | } |
| 593 | 593 | |
| @@ -597,7 +597,7 @@ impl LayoutElement for Mapped { | ||
| 597 | 597 | buf_pos.to_physical_precise_round(scale), |
| 598 | 598 | scale, |
| 599 | 599 | alpha, |
| 600 | - Kind::Unspecified, | |
| 600 | + Kind::ScanoutCandidate, | |
| 601 | 601 | ); |
| 602 | 602 | } |
| 603 | 603 | |
| @@ -627,7 +627,7 @@ impl LayoutElement for Mapped { | ||
| 627 | 627 | buf_pos.to_physical_precise_round(scale), |
| 628 | 628 | scale, |
| 629 | 629 | alpha, |
| 630 | - Kind::Unspecified, | |
| 630 | + Kind::ScanoutCandidate, | |
| 631 | 631 | ) |
| 632 | 632 | } |
| 633 | 633 | } |
| @@ -656,7 +656,7 @@ impl LayoutElement for Mapped { | ||
| 656 | 656 | (buf_pos + offset.to_f64()).to_physical_precise_round(scale), |
| 657 | 657 | scale, |
| 658 | 658 | alpha, |
| 659 | - Kind::Unspecified, | |
| 659 | + Kind::ScanoutCandidate, | |
| 660 | 660 | )); |
| 661 | 661 | } |
| 662 | 662 |