mirror of
https://github.com/swaywm/sway.git
synced 2024-11-16 21:23:17 +00:00
Fix crash when destroying an idle-inhibiting client
When destroying an idle-inhibiting client, idle_inhibit_v1_check_active can get called from transaction_progress_queue on a view with a null container. view_is_visible does not handle a view in this state.
This commit is contained in:
parent
31c6b5814f
commit
ffd1308bbc
|
@ -44,7 +44,7 @@ void idle_inhibit_v1_check_active(
|
||||||
struct sway_idle_inhibitor_v1 *inhibitor;
|
struct sway_idle_inhibitor_v1 *inhibitor;
|
||||||
bool inhibited = false;
|
bool inhibited = false;
|
||||||
wl_list_for_each(inhibitor, &manager->inhibitors, link) {
|
wl_list_for_each(inhibitor, &manager->inhibitors, link) {
|
||||||
if (!inhibitor->view) {
|
if (!inhibitor->view || !inhibitor->view->container) {
|
||||||
/* Cannot guess if view is visible so assume it is */
|
/* Cannot guess if view is visible so assume it is */
|
||||||
inhibited = true;
|
inhibited = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue