Merge pull request #65 from markk/master

Handle sway application support for XWayland windows
pull/67/head
Takashi Kokubun 3 years ago committed by GitHub
commit 6a76e5bbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,11 @@ impl Client for SwayClient {
if let Ok(node) = connection.get_tree() {
if let Some(node) = node.find_focused(|n| n.focused) {
return node.app_id;
if node.app_id.is_some() {
return node.app_id;
} else if let Some(wp) = node.window_properties {
return wp.class;
}
}
}
None

Loading…
Cancel
Save