Skip to content

Commit

Permalink
#3229 use typed accessor to guarantee we get a string here
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 4, 2021
1 parent ddccc04 commit c12bca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/client/mixins/window_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ def window_close_event(self, wid):
metadata = getattr(window, "_metadata", {})
log("window_close_event(%i) metadata=%s", wid, metadata)
class_instance = metadata.strtupleget("class-instance", (None, None), 2, 2)
title = metadata.get("title", "")
title = metadata.strget("title", "")
log("window_close_event(%i) title=%s, class-instance=%s", wid, title, class_instance)
matching_title_close = [x for x in TITLE_CLOSEEXIT if x and title.startswith(x)]
close = None
Expand Down

0 comments on commit c12bca9

Please sign in to comment.