Render cursors

This commit is contained in:
Victoria Brekenfeld 2022-02-01 13:59:39 +01:00
parent 4e238d8848
commit db6ca9e61c
10 changed files with 481 additions and 46 deletions

View file

@ -1,9 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::Common;
use crate::{
backend::cursor,
input::{set_active_output, Devices},
state::{BackendData, State},
state::{BackendData, State, Common},
utils::GlobalDrop,
};
use anyhow::{Context, Result};
@ -166,6 +166,17 @@ impl Surface {
);
}
for seat in &state.seats {
if let Some(cursor) = cursor::draw_cursor(
renderer,
seat,
&state.start_time,
false,
) {
custom_elements.push(cursor)
}
}
let space = state.spaces.active_space_mut(&self.output);
let (buffer, age) = self
.surface