mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Merge pull request #2641 from marienz/inhibit-crash
Fix crash when an idle-inhibiting client exits
This commit is contained in:
commit
5192f74be1
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ void idle_inhibit_v1_check_active(
|
|||
struct sway_idle_inhibitor_v1 *inhibitor;
|
||||
bool inhibited = false;
|
||||
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 */
|
||||
inhibited = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue