fix: harden Wayland compositor runtime checks

This commit is contained in:
2026-04-09 12:01:09 -04:00
parent 8fc77c5a2f
commit 5bb5f3d711
3 changed files with 93 additions and 2 deletions
+4 -1
View File
@@ -17,6 +17,7 @@ from typing import Any
from gi.repository import GLib
from . import debug
from .compositor_state_types import (
DESKTOP_TRANSITION_FINISHED,
DESKTOP_TRANSITION_STARTED,
@@ -98,7 +99,9 @@ class WaylandSharedProtocolsBackend:
self._bind_listener(self._registry, "global_remove", self._handle_registry_global_remove)
self._roundtrip()
self._install_dispatch_watch()
except Exception:
except Exception as error:
msg = f"COMPOSITOR STATE: Wayland backend activation failed: {error}"
debug.printMessage(debug.LEVEL_WARNING, msg, True)
self.deactivate()
def deactivate(self, emit_signal: Any = None) -> None: