|
|
@ -1221,6 +1221,8 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
|
|
|
output->server = server;
|
|
|
|
output->server = server;
|
|
|
|
list_add(root_container.sway_root->outputs, output);
|
|
|
|
list_add(root_container.sway_root->outputs, output);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
output->damage = wlr_output_damage_create(wlr_output);
|
|
|
|
|
|
|
|
|
|
|
|
if (!wl_list_empty(&wlr_output->modes)) {
|
|
|
|
if (!wl_list_empty(&wlr_output->modes)) {
|
|
|
|
struct wlr_output_mode *mode =
|
|
|
|
struct wlr_output_mode *mode =
|
|
|
|
wl_container_of(wlr_output->modes.prev, mode, link);
|
|
|
|
wl_container_of(wlr_output->modes.prev, mode, link);
|
|
|
@ -1233,14 +1235,6 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
|
|
|
void output_enable(struct sway_output *output) {
|
|
|
|
void output_enable(struct sway_output *output) {
|
|
|
|
struct wlr_output *wlr_output = output->wlr_output;
|
|
|
|
struct wlr_output *wlr_output = output->wlr_output;
|
|
|
|
|
|
|
|
|
|
|
|
if (!wlr_output->data) {
|
|
|
|
|
|
|
|
wlr_output->data = output;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!output->damage) {
|
|
|
|
|
|
|
|
output->damage = wlr_output_damage_create(wlr_output);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
output->swayc = output_create(output);
|
|
|
|
output->swayc = output_create(output);
|
|
|
|
if (!output->swayc) {
|
|
|
|
if (!output->swayc) {
|
|
|
|
// Output is disabled
|
|
|
|
// Output is disabled
|
|
|
|