mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-12-17 18:33:24 +00:00
riverctl patch: fix > instead of >= mistake
This commit is contained in:
parent
642e4d0870
commit
b46762bb3f
@ -1,4 +1,4 @@
|
|||||||
From 45600be73ddc309ef5e3c5f962883231a973f4e0 Mon Sep 17 00:00:00 2001
|
From 184aa237dc5d9c6a142183f8e25f4149d7904bf4 Mon Sep 17 00:00:00 2001
|
||||||
From: Zuki Air <zukirust@gmail.com>
|
From: Zuki Air <zukirust@gmail.com>
|
||||||
Date: Sun, 27 Jul 2025 11:30:32 +0100
|
Date: Sun, 27 Jul 2025 11:30:32 +0100
|
||||||
Subject: [PATCH] river-ctl patch
|
Subject: [PATCH] river-ctl patch
|
||||||
@ -448,7 +448,7 @@ index 0000000..aa5fc4d
|
|||||||
+</protocol>
|
+</protocol>
|
||||||
diff --git a/river-control.h b/river-control.h
|
diff --git a/river-control.h b/river-control.h
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..329e15b
|
index 0000000..c59399b
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/river-control.h
|
+++ b/river-control.h
|
||||||
@@ -0,0 +1,743 @@
|
@@ -0,0 +1,743 @@
|
||||||
@ -631,7 +631,7 @@ index 0000000..329e15b
|
|||||||
+const char *zriver_error_no_matching_argument = "no matching argument";
|
+const char *zriver_error_no_matching_argument = "no matching argument";
|
||||||
+const char *zriver_error_double_appid = "set appid more then once!";
|
+const char *zriver_error_double_appid = "set appid more then once!";
|
||||||
+const char *zriver_error_double_title = "set title more then once!";
|
+const char *zriver_error_double_title = "set title more then once!";
|
||||||
+const char *zriver_error_under_zero = "argument needs to be more then zero!";
|
+const char *zriver_error_under_zero = "argument can't be less then zero!";
|
||||||
+#define STR_LINK_ARRAY_SIZE 10
|
+#define STR_LINK_ARRAY_SIZE 10
|
||||||
+struct Str_link {
|
+struct Str_link {
|
||||||
+ struct wl_list link;
|
+ struct wl_list link;
|
||||||
@ -1011,7 +1011,7 @@ index 0000000..329e15b
|
|||||||
+ case(FUNC_STR_ARG_TYPE_UINT):
|
+ case(FUNC_STR_ARG_TYPE_UINT):
|
||||||
+ // TODO make overflow check
|
+ // TODO make overflow check
|
||||||
+ arg->i = strtol(argument,NULL,10);
|
+ arg->i = strtol(argument,NULL,10);
|
||||||
+ if (arg->i > 0) {
|
+ if (arg->i >= 0) {
|
||||||
+ arg->ui = arg->i;
|
+ arg->ui = arg->i;
|
||||||
+ } else {
|
+ } else {
|
||||||
+ args->error = true;
|
+ args->error = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user