mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Fix strcmp use
This commit is contained in:
parent
b31ce4220c
commit
4bc1cc49d5
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ int main(int argc, char **argv) {
|
|||
};
|
||||
found = false;
|
||||
for (size_t i = 0; i < sizeof(layers) / sizeof(layers[0]); ++i) {
|
||||
if (strcmp(optarg, layers[i].name)) {
|
||||
if (strcmp(optarg, layers[i].name) == 0) {
|
||||
layer = layers[i].value;
|
||||
found = true;
|
||||
break;
|
||||
|
@ -145,7 +145,7 @@ int main(int argc, char **argv) {
|
|||
};
|
||||
found = false;
|
||||
for (size_t i = 0; i < sizeof(anchors) / sizeof(anchors[0]); ++i) {
|
||||
if (strcmp(optarg, anchors[i].name)) {
|
||||
if (strcmp(optarg, anchors[i].name) == 0) {
|
||||
anchor |= anchors[i].value;
|
||||
found = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue