aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaynag
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-27 23:27:44 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-27 23:34:51 -0500
commit673da8326038e0deb9837fd90d9e02351783b564 (patch)
tree1546629686b2afe4c7dbae18eb4233cbf0f0b4c6 /include/swaynag
parentMerge pull request #3175 from emersion/rename-gtk-primary-selection (diff)
downloadsway-673da8326038e0deb9837fd90d9e02351783b564.tar.gz
sway-673da8326038e0deb9837fd90d9e02351783b564.tar.zst
sway-673da8326038e0deb9837fd90d9e02351783b564.zip
Implement swaynag -B/--button-no-terminal
In `i3 4.16`, `i3-nagbar` introduces the flags `-B/--button-no-terminal` to run the action directly instead of inside a terminal. This implements the flags for swaynag for compatibility. Since swaynag does not use an equivalent to `i3-sensible-terminal`, the flags `-b/--button` only uses a terminal when the environment variable `TERMINAL` is set, otherwise it acts the same as these new flags.
Diffstat (limited to 'include/swaynag')
-rw-r--r--include/swaynag/swaynag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swaynag/swaynag.h b/include/swaynag/swaynag.h
index a32d1503..0fd1eb50 100644
--- a/include/swaynag/swaynag.h
+++ b/include/swaynag/swaynag.h
@@ -44,6 +44,7 @@ struct swaynag_button {
44 int y; 44 int y;
45 int width; 45 int width;
46 int height; 46 int height;
47 bool terminal;
47}; 48};
48 49
49struct swaynag_details { 50struct swaynag_details {