diff options
| author | Christian Meissl <meissl.christian@gmail.com> | 2025-08-13 10:27:41 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-13 11:39:12 +0300 |
| commit | af9ce533100b49e8bc879b557ab830f5d3a18805 (patch) | |
| tree | 89f2abd5eab028bd863092e500eb5865f0c62ab3 /src | |
| parent | 0044578681cee50fd7ad49fcb8d1e2ea53d85fe4 (diff) | |
| download | niri-af9ce533100b49e8bc879b557ab830f5d3a18805.tar.gz niri-af9ce533100b49e8bc879b557ab830f5d3a18805.tar.bz2 niri-af9ce533100b49e8bc879b557ab830f5d3a18805.zip | |
use ScanoutCandidate kind for surfaces
this allows to get direct scan-out on surfaces again
Diffstat (limited to 'src')
| -rw-r--r-- | src/layer/mapped.rs | 4 | ||||
| -rw-r--r-- | src/niri.rs | 4 | ||||
| -rw-r--r-- | src/window/mapped.rs | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/layer/mapped.rs b/src/layer/mapped.rs index 5eee37fb..8262bf64 100644 --- a/src/layer/mapped.rs +++ b/src/layer/mapped.rs @@ -195,7 +195,7 @@ impl MappedLayer { (buf_pos + offset.to_f64()).to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, )); } @@ -205,7 +205,7 @@ impl MappedLayer { buf_pos.to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, ); } diff --git a/src/niri.rs b/src/niri.rs index f257d785..9d847c74 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -3747,7 +3747,7 @@ impl Niri { pointer_pos, output_scale, 1., - Kind::Unspecified, + Kind::ScanoutCandidate, )); } @@ -4144,7 +4144,7 @@ impl Niri { (0, 0), output_scale, 1., - Kind::Unspecified, + Kind::ScanoutCandidate, )); } diff --git a/src/window/mapped.rs b/src/window/mapped.rs index 0f39bef4..995c76bf 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -587,7 +587,7 @@ impl LayoutElement for Mapped { (buf_pos + offset.to_f64()).to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, )); } @@ -597,7 +597,7 @@ impl LayoutElement for Mapped { buf_pos.to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, ); } @@ -627,7 +627,7 @@ impl LayoutElement for Mapped { buf_pos.to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, ) } } @@ -656,7 +656,7 @@ impl LayoutElement for Mapped { (buf_pos + offset.to_f64()).to_physical_precise_round(scale), scale, alpha, - Kind::Unspecified, + Kind::ScanoutCandidate, )); } |
