term: consolidate shutdown related state into an anonymous struct

This commit is contained in:
Daniel Eklöf 2021-07-31 19:08:51 +02:00
parent c23bff4189
commit 03f952cf4d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 48 additions and 39 deletions

View file

@ -1471,7 +1471,7 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
case TERM_SURF_BUTTON_MINIMIZE:
case TERM_SURF_BUTTON_MAXIMIZE:
case TERM_SURF_BUTTON_CLOSE:
if (old_moused->is_shutting_down)
if (old_moused->shutdown.in_progress)
break;
render_refresh_csd(old_moused);