mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Update output container box in event handler
This commit is contained in:
parent
c7abb77f22
commit
d293c42942
4 changed files with 19 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue