diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-28 23:25:40 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-08-01 22:47:54 -0400 |
commit | 894d57f19259eaaa4d7777f067ce4cf877a480a5 (patch) | |
tree | 99cabba42f050eb11feea8053e565d1f629ff115 /swaynag | |
parent | a6145914c60351d8e541192c7fe35556f8e02507 (diff) |
swaynag: fix output selection
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/swaynag.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c index 367e0854..e5d2e216 100644 --- a/swaynag/swaynag.c +++ b/swaynag/swaynag.c @@ -230,7 +230,8 @@ static void xdg_output_handle_name(void *data, struct output_state *state = data; char *outname = state->swaynag->output.name; wlr_log(WLR_DEBUG, "Checking against output %s for %s", name, outname); - if (outname && !state->swaynag->output.wl_output) { + if (!state->swaynag->output.wl_output && outname && name + && strcmp(outname, name) == 0) { wlr_log(WLR_DEBUG, "Using output %s", name); state->swaynag->output.wl_output = state->wl_output; state->swaynag->output.wl_name = state->wl_name; |