minor fix
This commit is contained in:
parent
a04f645d7c
commit
d2e2b04bfd
|
@ -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) {
|
static bool test_name(swayc_t *view, void *data) {
|
||||||
if (!view && !view->name) {
|
if (!view || !view->name) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return strcmp(view->name, data) == 0;
|
return strcmp(view->name, data) == 0;
|
||||||
|
|
|
@ -331,7 +331,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
|
||||||
struct sway_binding *binding = mode->bindings->items[i];
|
struct sway_binding *binding = mode->bindings->items[i];
|
||||||
|
|
||||||
if ((modifiers->mods ^ binding->modifiers) == 0) {
|
if ((modifiers->mods ^ binding->modifiers) == 0) {
|
||||||
bool match;
|
bool match = false;
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; j < binding->keys->length; ++j) {
|
for (j = 0; j < binding->keys->length; ++j) {
|
||||||
xkb_keysym_t *key = binding->keys->items[j];
|
xkb_keysym_t *key = binding->keys->items[j];
|
||||||
|
|
Loading…
Reference in a new issue