Draw cursor when locked correctly

This commit is contained in:
Ottatop 2024-05-14 21:44:59 -05:00
parent b9c5a88f9f
commit 6541f9fda3
2 changed files with 2 additions and 2 deletions

View file

@ -1449,7 +1449,7 @@ impl Udev {
// If there isn't a pending screencopy that doesn't want to overlay the cursor,
// render it.
match pending_screencopy_with_cursor {
Some(include_cursor) if !should_blank => {
Some(include_cursor) if pinnacle.lock_state.is_unlocked() => {
if include_cursor {
// HACK: Doing `RenderFrameResult::blit_frame_result` with something on the
// | cursor plane causes the cursor to overwrite the pixels underneath it,

View file

@ -272,7 +272,7 @@ impl State {
|| (self.pinnacle.lock_state.is_locked()
&& output.with_state(|state| state.lock_surface.is_none()));
let should_draw_cursor = !should_blank
let should_draw_cursor = !self.pinnacle.lock_state.is_unlocked()
|| output.with_state(|state| {
// Don't draw cursor when screencopy without cursor is pending
!state