mirror of
https://github.com/swaywm/sway
synced 2024-11-23 17:32:40 +01:00
swaynag: fix output selection
This commit is contained in:
parent
a6145914c6
commit
894d57f192
@ -230,7 +230,8 @@ static void xdg_output_handle_name(void *data,
|
|||||||
struct output_state *state = data;
|
struct output_state *state = data;
|
||||||
char *outname = state->swaynag->output.name;
|
char *outname = state->swaynag->output.name;
|
||||||
wlr_log(WLR_DEBUG, "Checking against output %s for %s", name, outname);
|
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);
|
wlr_log(WLR_DEBUG, "Using output %s", name);
|
||||||
state->swaynag->output.wl_output = state->wl_output;
|
state->swaynag->output.wl_output = state->wl_output;
|
||||||
state->swaynag->output.wl_name = state->wl_name;
|
state->swaynag->output.wl_name = state->wl_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user