aboutsummaryrefslogtreecommitdiff
path: root/niri-config
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-05-25 08:41:33 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-25 08:43:27 +0300
commit126ca37d96b03a015a6481b37073060d9861d8f6 (patch)
treebd08d01d0b77b6d0e9191cae8c9102f400f8057b /niri-config
parente6bd60fbb1e747d68d8239c78f84d8d270af812c (diff)
downloadniri-126ca37d96b03a015a6481b37073060d9861d8f6.tar.gz
niri-126ca37d96b03a015a6481b37073060d9861d8f6.tar.bz2
niri-126ca37d96b03a015a6481b37073060d9861d8f6.zip
Rename Un/Set/ToggleUrgent to Un/Set/ToggleWindowUrgent
Overlooked this when reviewing. This change is not cfg-breaking (since you can't bind these directly), but it does break calling these actions through IPC. I don't imagine they are widely used though, and the original PR author who also implemented urgency for bars said he didn't use these actions either.
Diffstat (limited to 'niri-config')
-rw-r--r--niri-config/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs
index f23e2b9d..44aeffe9 100644
--- a/niri-config/src/lib.rs
+++ b/niri-config/src/lib.rs
@@ -1888,11 +1888,11 @@ pub enum Action {
OpenOverview,
CloseOverview,
#[knuffel(skip)]
- ToggleUrgent(u64),
+ ToggleWindowUrgent(u64),
#[knuffel(skip)]
- SetUrgent(u64),
+ SetWindowUrgent(u64),
#[knuffel(skip)]
- UnsetUrgent(u64),
+ UnsetWindowUrgent(u64),
}
impl From<niri_ipc::Action> for Action {
@@ -2165,9 +2165,9 @@ impl From<niri_ipc::Action> for Action {
niri_ipc::Action::ToggleOverview {} => Self::ToggleOverview,
niri_ipc::Action::OpenOverview {} => Self::OpenOverview,
niri_ipc::Action::CloseOverview {} => Self::CloseOverview,
- niri_ipc::Action::ToggleUrgent { id } => Self::ToggleUrgent(id),
- niri_ipc::Action::SetUrgent { id } => Self::SetUrgent(id),
- niri_ipc::Action::UnsetUrgent { id } => Self::UnsetUrgent(id),
+ niri_ipc::Action::ToggleWindowUrgent { id } => Self::ToggleWindowUrgent(id),
+ niri_ipc::Action::SetWindowUrgent { id } => Self::SetWindowUrgent(id),
+ niri_ipc::Action::UnsetWindowUrgent { id } => Self::UnsetWindowUrgent(id),
}
}
}