diff options
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r-- | sway/tree/output.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 9a10c6a8..ae3c3abf 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c | |||
@@ -110,12 +110,12 @@ struct sway_output *output_create(struct wlr_output *wlr_output) { | |||
110 | return output; | 110 | return output; |
111 | } | 111 | } |
112 | 112 | ||
113 | void output_configure(struct sway_output *output) { | 113 | void output_enable(struct sway_output *output) { |
114 | if (!sway_assert(!output->configured, "output is already configured")) { | 114 | if (!sway_assert(!output->enabled, "output is already enabled")) { |
115 | return; | 115 | return; |
116 | } | 116 | } |
117 | struct wlr_output *wlr_output = output->wlr_output; | 117 | struct wlr_output *wlr_output = output->wlr_output; |
118 | output->configured = true; | 118 | output->enabled = true; |
119 | list_add(root->outputs, output); | 119 | list_add(root->outputs, output); |
120 | 120 | ||
121 | restore_workspaces(output); | 121 | restore_workspaces(output); |
@@ -262,7 +262,6 @@ void output_disable(struct sway_output *output) { | |||
262 | list_del(root->outputs, index); | 262 | list_del(root->outputs, index); |
263 | 263 | ||
264 | output->enabled = false; | 264 | output->enabled = false; |
265 | output->configured = false; | ||
266 | output->current_mode = NULL; | 265 | output->current_mode = NULL; |
267 | 266 | ||
268 | arrange_root(); | 267 | arrange_root(); |