From 1500567e50c8ab20314068566847dcdea109c63d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 1 May 2023 10:19:55 +0200 Subject: gui: add wmclass This is needed so we can properly identify the switcher in i3 layouts --- gui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui.py') diff --git a/gui.py b/gui.py index 8aa5abe..232882c 100644 --- a/gui.py +++ b/gui.py @@ -26,6 +26,8 @@ class PyATEMSwitcherGui(): self.window = Gtk.Window() self.window.connect("destroy", self._exit) + self.window.set_wmclass('pygtk-atem-switcher', 'PyGTK-ATEM-Switcher') + self.switcher = switcher self.switcher.on_connect(self._switcher_connected) self.switcher.on_connect_attempt(self._switcher_connect_attempt) @@ -71,6 +73,8 @@ class PyATEMSwitcherGui(): for idx,i in enumerate(switcher.inputProperties): if not i.shortName: break + if i.shortName.lower() in ('-', 'empty', 'x'): + continue log.debug(f'Creating Button for {i.shortName} of type {i.externalPortType}: {i.longName}') btn = Gtk.Button.new_with_label( i.longName -- cgit v1.2.3