From 8f51209286f21032c5a48dae98b304f5fb035d3d Mon Sep 17 00:00:00 2001 From: Unai Fernandez Date: Wed, 10 Apr 2019 22:22:00 +0200 Subject: [PATCH] Fix linux_window_is_focused --- ntfy/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfy/terminal.py b/ntfy/terminal.py index 17e323c..a3173f9 100644 --- a/ntfy/terminal.py +++ b/ntfy/terminal.py @@ -7,7 +7,7 @@ def linux_window_is_focused(): xprop_cmd = shlex.split('xprop -root _NET_ACTIVE_WINDOW') try: - xprop_window_id = int(check_output(xprop_cmd, stdout=PIPE, stderr=PIPE).split()[-1], 16) + xprop_window_id = int(check_output(xprop_cmd, stderr=PIPE).split()[-1], 16) except CalledProcessError: return False except ValueError: