mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
minor fix
This commit is contained in:
parent
a04f645d7c
commit
d2e2b04bfd
2 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ swayc_t *swayc_by_test(swayc_t *container, bool (*test)(swayc_t *view, void *dat
|
|||
}
|
||||
|
||||
static bool test_name(swayc_t *view, void *data) {
|
||||
if (!view && !view->name) {
|
||||
if (!view || !view->name) {
|
||||
return false;
|
||||
}
|
||||
return strcmp(view->name, data) == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue