Skip to content

Commit

Permalink
Add (lack of) lock animation support
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldg committed Sep 4, 2021
1 parent 6e939db commit 18ae63c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sway/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void handle_lock_set_mode(struct wl_listener *listener, void *data)
seat_set_focus(seat, previous);
}
}
// No animation, send finished now
wlr_screenlock_send_unlock_finished(server.screenlock);
break;

case 1:
Expand All @@ -96,6 +98,8 @@ void handle_lock_set_mode(struct wl_listener *listener, void *data)
seat_set_exclusive_client(seat, client);
}

// TODO we should delay this until the frame is displayed
wlr_screenlock_send_lock_finished(signal->lock_resource);
break;

case 2:
Expand Down

0 comments on commit 18ae63c

Please sign in to comment.