mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
Call wlr_output_enable on enable/disable if needed
This commit is contained in:
parent
610eb94617
commit
c246cf84c8
2 changed files with 15 additions and 23 deletions
|
|
@ -54,12 +54,6 @@ struct sway_output *output_create(struct wlr_output *wlr_output) {
|
|||
|
||||
wl_list_insert(&root->all_outputs, &output->link);
|
||||
|
||||
if (!wl_list_empty(&wlr_output->modes)) {
|
||||
struct wlr_output_mode *mode =
|
||||
wl_container_of(wlr_output->modes.prev, mode, link);
|
||||
wlr_output_set_mode(wlr_output, mode);
|
||||
}
|
||||
|
||||
output->workspaces = create_list();
|
||||
output->current.workspaces = create_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue