only force tabbed on children of split
This commit is contained in:
parent
5f1e1af97a
commit
b47d623a05
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1041,7 +1041,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sway-flash-indicator"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
dependencies = [
|
||||
"directories",
|
||||
"futures-util",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sway-flash-indicator"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Alex Janka <alex@alexjanka.com>
|
||||
|
||||
pkgname=sway-flash-indicator
|
||||
pkgver=0.6.1
|
||||
pkgver=0.6.2
|
||||
pkgrel=1
|
||||
pkgdesc="flashes sway indicator border rather than always showing it"
|
||||
arch=('x86_64' 'aarch64')
|
||||
|
|
|
@ -86,7 +86,9 @@ async fn main() -> Res<()> {
|
|||
})
|
||||
{
|
||||
if let Some(parent) = tree.find_as_ref(|n| n.focus.contains(&node.id)) {
|
||||
if parent.layout != swayipc_async::NodeLayout::Tabbed {
|
||||
if parent.layout == swayipc_async::NodeLayout::SplitH
|
||||
|| parent.layout == swayipc_async::NodeLayout::SplitV
|
||||
{
|
||||
command_connection.run_command("splith").await?;
|
||||
command_connection.run_command("layout tabbed").await?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue