diff options
author | emersion <contact@emersion.fr> | 2017-12-12 21:09:51 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-12 21:09:51 +0100 |
commit | d293c429424a9f96c3fc8143af457645326e7a0e (patch) | |
tree | 530509af18e72af36a52e9fd3970a706695919be /sway/config | |
parent | Listen to output layout change (diff) | |
download | sway-d293c429424a9f96c3fc8143af457645326e7a0e.tar.gz sway-d293c429424a9f96c3fc8143af457645326e7a0e.tar.zst sway-d293c429424a9f96c3fc8143af457645326e7a0e.zip |
Update output container box in event handler
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index ed47a617..6371763f 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -131,12 +131,6 @@ void apply_output_config(struct output_config *oc, swayc_t *output) { | |||
131 | wlr_output_layout_add_auto(root_container.sway_root->output_layout, | 131 | wlr_output_layout_add_auto(root_container.sway_root->output_layout, |
132 | wlr_output); | 132 | wlr_output); |
133 | } | 133 | } |
134 | struct wlr_box *output_layout_box = wlr_output_layout_get_box( | ||
135 | root_container.sway_root->output_layout, wlr_output); | ||
136 | output->x = output_layout_box->x; | ||
137 | output->y = output_layout_box->y; | ||
138 | output->width = output_layout_box->width; | ||
139 | output->height = output_layout_box->height; | ||
140 | 134 | ||
141 | if (!oc || !oc->background) { | 135 | if (!oc || !oc->background) { |
142 | // Look for a * config for background | 136 | // Look for a * config for background |