mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement block-out-from window rule, fix alpha on window screenshots
This commit is contained in:
@@ -19,6 +19,17 @@ pub mod render_elements;
|
||||
pub mod renderer;
|
||||
pub mod shaders;
|
||||
|
||||
/// What we're rendering for.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum RenderTarget {
|
||||
/// Rendering to display on screen.
|
||||
Output,
|
||||
/// Rendering for a screencast.
|
||||
Screencast,
|
||||
/// Rendering for any other screen capture.
|
||||
ScreenCapture,
|
||||
}
|
||||
|
||||
pub fn render_to_texture(
|
||||
renderer: &mut GlesRenderer,
|
||||
size: Size<i32, Physical>,
|
||||
|
||||
Reference in New Issue
Block a user