application-mapper: gracefully handle Sway edge case

Sometimes in Sway, when an application goes from fullscreen to
windowed mode, there is neither a "app_id" or "window_properties"
attribute.  Avoid throwing an exception for this case.
master
Sean Estabrooks 4 years ago
parent 3d09cce6f7
commit 1defe9612c
  1. 7
      scripts/keyd-application-mapper

@ -112,8 +112,11 @@ class SwayMonitor():
cls = props['class']
title = props['title']
except:
title = ''
cls = data['container']['app_id']
try:
title = ''
cls = data['container']['app_id']
except:
pass
if title == '' and cls == '':
continue

Loading…
Cancel
Save