autosplit misfires
This commit is contained in:
parent
5e2ffa096c
commit
18814338da
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1041,7 +1041,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sway-flash-indicator"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
dependencies = [
|
||||
"directories",
|
||||
"futures-util",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sway-flash-indicator"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Alex Janka <alex@alexjanka.com>
|
||||
|
||||
pkgname=sway-flash-indicator
|
||||
pkgver=0.6.0
|
||||
pkgver=0.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="flashes sway indicator border rather than always showing it"
|
||||
arch=('x86_64' 'aarch64')
|
||||
|
|
|
@ -122,7 +122,10 @@ async fn main() -> Res<()> {
|
|||
|
||||
// TODO: also change on window closed -
|
||||
// the node we're given is the one that closes
|
||||
if window.change != swayipc_async::WindowChange::Close {
|
||||
if window.change == swayipc_async::WindowChange::Focus
|
||||
&& node.focused
|
||||
&& tree.find_as_ref(|n| n.id == node.id).is_some()
|
||||
{
|
||||
autosplit(&node, &tree, &mut command_connection).await?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue