From 08ea82b08b2bf90e44eff3f1d68f573f5dc864ee Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Wed, 9 Jan 2019 15:43:46 +0100 Subject: [PATCH] MousePerspective: inform the user of errors This simply connects the pieces: when a resync signal is emitted on the device, we show the notification informing the user that something has gone wrong. --- piper/mouseperspective.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piper/mouseperspective.py b/piper/mouseperspective.py index 38d1f97..213a4a2 100644 --- a/piper/mouseperspective.py +++ b/piper/mouseperspective.py @@ -84,6 +84,7 @@ class MousePerspective(Gtk.Overlay): def set_device(self, device): self._device = device capabilities = device.capabilities + device.connect("resync", lambda _: self._show_notification_error()) self.stack.foreach(Gtk.Widget.destroy) if RatbagdDevice.CAP_RESOLUTION in capabilities: