mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Merge branch 'wlroots' into split-containers2
This commit is contained in:
commit
741e3959e3
14 changed files with 386 additions and 138 deletions
|
|
@ -123,11 +123,14 @@ void terminate_swaybg(pid_t pid) {
|
|||
void apply_output_config(struct output_config *oc, struct sway_container *output) {
|
||||
assert(output->type == C_OUTPUT);
|
||||
|
||||
struct wlr_output_layout *output_layout =
|
||||
root_container.sway_root->output_layout;
|
||||
struct wlr_output *wlr_output = output->sway_output->wlr_output;
|
||||
|
||||
if (oc && oc->enabled == 0) {
|
||||
container_destroy(output);
|
||||
wlr_output_layout_remove(root_container.sway_root->output_layout,
|
||||
wlr_output);
|
||||
container_destroy(output);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -148,11 +151,9 @@ void apply_output_config(struct output_config *oc, struct sway_container *output
|
|||
// Find position for it
|
||||
if (oc && (oc->x != -1 || oc->y != -1)) {
|
||||
wlr_log(L_DEBUG, "Set %s position to %d, %d", oc->name, oc->x, oc->y);
|
||||
wlr_output_layout_add(root_container.sway_root->output_layout,
|
||||
wlr_output, oc->x, oc->y);
|
||||
wlr_output_layout_add(output_layout, wlr_output, oc->x, oc->y);
|
||||
} else {
|
||||
wlr_output_layout_add_auto(root_container.sway_root->output_layout,
|
||||
wlr_output);
|
||||
wlr_output_layout_add_auto(output_layout, wlr_output);
|
||||
}
|
||||
|
||||
if (!oc || !oc->background) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue