aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-04-03 21:53:43 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-04-04 20:08:21 +0300
commit75e7bd24ccb9731065bb7f8313aa53ba11ddc420 (patch)
tree2522f31626a21b42c2496a32266eafd3b7d66f50 /sway/desktop/output.c
parentidle_inhibit: fix crash during view destruction (diff)
downloadsway-75e7bd24ccb9731065bb7f8313aa53ba11ddc420.tar.gz
sway-75e7bd24ccb9731065bb7f8313aa53ba11ddc420.tar.zst
sway-75e7bd24ccb9731065bb7f8313aa53ba11ddc420.zip
swaybg: one instance for all outputs
This makes it so there will only be one swaybg instance running instead of one per output. swaybg's cli has been changed to a xrandr like interface, where you select an output and then change properties for that output and then select another output and repeat. This also makes it so swaybg is only killed and respawned when a background changes or when reloading.
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 9d0c0ef5..0b3e1edb 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -525,7 +525,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
525 wl_list_remove(&output->present.link); 525 wl_list_remove(&output->present.link);
526 wl_list_remove(&output->damage_destroy.link); 526 wl_list_remove(&output->damage_destroy.link);
527 wl_list_remove(&output->damage_frame.link); 527 wl_list_remove(&output->damage_frame.link);
528 wl_list_remove(&output->swaybg_client_destroy.link);
529 528
530 transaction_commit_dirty(); 529 transaction_commit_dirty();
531} 530}
@@ -632,7 +631,6 @@ void handle_new_output(struct wl_listener *listener, void *data) {
632 output->damage_frame.notify = damage_handle_frame; 631 output->damage_frame.notify = damage_handle_frame;
633 wl_signal_add(&output->damage->events.destroy, &output->damage_destroy); 632 wl_signal_add(&output->damage->events.destroy, &output->damage_destroy);
634 output->damage_destroy.notify = damage_handle_destroy; 633 output->damage_destroy.notify = damage_handle_destroy;
635 wl_list_init(&output->swaybg_client_destroy.link);
636 634
637 struct output_config *oc = find_output_config(output); 635 struct output_config *oc = find_output_config(output);
638 if (!oc || oc->enabled) { 636 if (!oc || oc->enabled) {