Update output container box in event handler

This commit is contained in:
emersion 2017-12-12 21:09:51 +01:00
parent c7abb77f22
commit d293c42942
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 19 additions and 14 deletions

View file

@ -131,12 +131,6 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
wlr_output_layout_add_auto(root_container.sway_root->output_layout,
wlr_output);
}
struct wlr_box *output_layout_box = wlr_output_layout_get_box(
root_container.sway_root->output_layout, wlr_output);
output->x = output_layout_box->x;
output->y = output_layout_box->y;
output->width = output_layout_box->width;
output->height = output_layout_box->height;
if (!oc || !oc->background) {
// Look for a * config for background