mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-02-05 20:46:27 +01:00
Draw cursor when locked correctly
This commit is contained in:
parent
b9c5a88f9f
commit
6541f9fda3
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue