Compare commits

..

No commits in common. "b47d623a0557331f01ecb2ac6f046830d3a7cbfd" and "18814338da776134da7413a1202cbd4127ef5faf" have entirely different histories.

4 changed files with 8 additions and 9 deletions

2
Cargo.lock generated
View file

@ -1041,7 +1041,7 @@ dependencies = [
[[package]]
name = "sway-flash-indicator"
version = "0.6.2"
version = "0.6.1"
dependencies = [
"directories",
"futures-util",

View file

@ -1,6 +1,6 @@
[package]
name = "sway-flash-indicator"
version = "0.6.2"
version = "0.6.1"
edition = "2021"
[dependencies]

View file

@ -1,7 +1,7 @@
# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=sway-flash-indicator
pkgver=0.6.2
pkgver=0.6.1
pkgrel=1
pkgdesc="flashes sway indicator border rather than always showing it"
arch=('x86_64' 'aarch64')

View file

@ -86,9 +86,7 @@ async fn main() -> Res<()> {
})
{
if let Some(parent) = tree.find_as_ref(|n| n.focus.contains(&node.id)) {
if parent.layout == swayipc_async::NodeLayout::SplitH
|| parent.layout == swayipc_async::NodeLayout::SplitV
{
if parent.layout != swayipc_async::NodeLayout::Tabbed {
command_connection.run_command("splith").await?;
command_connection.run_command("layout tabbed").await?;
}
@ -192,7 +190,7 @@ async fn code_trigger<T: AsRef<str> + std::cmp::PartialEq<str>>(
if workspace.focused {
let width = workspace.rect.width;
let mut workspace = get_with_id(tree, workspace.id)?;
let mut workspace = get_with_id(&tree, workspace.id)?;
if workspace
.output
.as_ref()
@ -215,8 +213,8 @@ async fn code_trigger<T: AsRef<str> + std::cmp::PartialEq<str>>(
&& workspace.focus.len() == 2
{
let (code, other) = {
let a = get_with_id(tree, workspace.focus[0])?;
let b = get_with_id(tree, workspace.focus[1])?;
let a = get_with_id(&tree, workspace.focus[0])?;
let b = get_with_id(&tree, workspace.focus[1])?;
if contains_child(a, id) {
(a, b)
} else {
@ -235,6 +233,7 @@ async fn code_trigger<T: AsRef<str> + std::cmp::PartialEq<str>>(
connection
.run_command(format!("swap container with con_id {}", other.id))
.await?;
// tokio::time::sleep(std::time::Duration::from_millis(50)).await;
}
connection