Skip to content

Commit

Permalink
Fix Linux window name logic for xterm (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Su authored and sindresorhus committed Jun 23, 2019
1 parent f51ea86 commit 674dcb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linux.js
Expand Up @@ -45,7 +45,7 @@ const parseLinux = ({stdout, boundsStdout, activeWindowId}) => {

return {
platform: 'linux',
title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)']) || null,
title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)'] || result['WM_NAME(STRING)']) || null,
id: windowId,
owner: {
name: JSON.parse(result['WM_CLASS(STRING)'].split(',').pop()),
Expand Down

0 comments on commit 674dcb8

Please sign in to comment.