aboutsummaryrefslogtreecommitdiff
path: root/swaybg
diff options
context:
space:
mode:
authorChristoph Gysin <christoph.gysin@gmail.com>2015-11-25 16:53:18 +0200
committerChristoph Gysin <christoph.gysin@gmail.com>2015-11-25 21:00:23 +0200
commit504ac84cbcd52d3052b980f576a1bceed3ebc69c (patch)
tree762b441e21caeac2650bb19ab4b43a1ec1c7a55c /swaybg
parent78c2e293282d20a2627f68a5b2921b2066ade2a3 (diff)
downloadsway-504ac84cbcd52d3052b980f576a1bceed3ebc69c.tar.xz
swaybg: check for exact number of arguments
Diffstat (limited to 'swaybg')
-rw-r--r--swaybg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybg/main.c b/swaybg/main.c
index e6510800..cb9cc42b 100644
--- a/swaybg/main.c
+++ b/swaybg/main.c
@@ -28,7 +28,7 @@ int main(int argc, const char **argv) {
surfaces = create_list();
registry = registry_poll();
- if (argc < 4) {
+ if (argc != 4) {
sway_abort("Do not run this program manually. See man 5 sway and look for output options.");
}