chore: chase wlroots map logic unification

This commit is contained in:
Kirill Primak 2023-03-05 23:49:45 +03:00 committed by Simon Ser
parent 72881b5d12
commit c9e1dab318
9 changed files with 90 additions and 51 deletions

View file

@ -60,7 +60,7 @@ static void destroy_lock_surface(struct sway_session_lock_surface *surf) {
struct wlr_session_lock_surface_v1 *other;
wl_list_for_each(other, &server.session_lock.lock->surfaces, link) {
if (other != surf->lock_surface && other->mapped) {
if (other != surf->lock_surface && other->surface->mapped) {
next_focus = other->surface;
break;
}