Skip to content

Commit

Permalink
render: Use render_input_order
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Oct 21, 2024
1 parent ad35c18 commit 13f6428
Show file tree
Hide file tree
Showing 10 changed files with 1,153 additions and 762 deletions.
6 changes: 3 additions & 3 deletions src/backend/render/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ where
<R as Renderer>::TextureId: 'static,
CosmicMappedRenderElement<R>: RenderElement<R>,
{
Workspace(RelocateRenderElement<WorkspaceRenderElement<R>>),
Workspace(RelocateRenderElement<CropRenderElement<WorkspaceRenderElement<R>>>),
Cursor(RelocateRenderElement<CursorRenderElement<R>>),
Dnd(WaylandSurfaceRenderElement<R>),
MoveGrab(CosmicMappedRenderElement<R>),
Expand Down Expand Up @@ -266,13 +266,13 @@ where
}
}

impl<R> From<WorkspaceRenderElement<R>> for CosmicElement<R>
impl<R> From<CropRenderElement<WorkspaceRenderElement<R>>> for CosmicElement<R>
where
R: Renderer + ImportAll + ImportMem + AsGlowRenderer,
<R as Renderer>::TextureId: 'static,
CosmicMappedRenderElement<R>: RenderElement<R>,
{
fn from(elem: WorkspaceRenderElement<R>) -> Self {
fn from(elem: CropRenderElement<WorkspaceRenderElement<R>>) -> Self {
Self::Workspace(RelocateRenderElement::from_element(
elem,
(0, 0),
Expand Down
Loading

0 comments on commit 13f6428

Please sign in to comment.