aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/title_align.c
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <alex@ozal.ski>2023-11-21 19:51:57 -0500
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit6d7b1321db54155cf78305dbafdcfc7de9b78415 (patch)
treeacf9f02681b1d5a40416be5f4151641920176a93 /sway/commands/title_align.c
parentscene_graph: Port layer_shell (diff)
downloadsway-6d7b1321db54155cf78305dbafdcfc7de9b78415.tar.gz
sway-6d7b1321db54155cf78305dbafdcfc7de9b78415.tar.zst
sway-6d7b1321db54155cf78305dbafdcfc7de9b78415.zip
scene_graph: Port container server side decorations
Diffstat (limited to 'sway/commands/title_align.c')
-rw-r--r--sway/commands/title_align.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/commands/title_align.c b/sway/commands/title_align.c
index c30355de..7f5dd3ae 100644
--- a/sway/commands/title_align.c
+++ b/sway/commands/title_align.c
@@ -4,6 +4,10 @@
4#include "sway/tree/container.h" 4#include "sway/tree/container.h"
5#include "sway/tree/root.h" 5#include "sway/tree/root.h"
6 6
7static void arrange_title_bar_iterator(struct sway_container *con, void *data) {
8 container_arrange_title_bar(con);
9}
10
7struct cmd_results *cmd_title_align(int argc, char **argv) { 11struct cmd_results *cmd_title_align(int argc, char **argv) {
8 struct cmd_results *error = NULL; 12 struct cmd_results *error = NULL;
9 if ((error = checkarg(argc, "title_align", EXPECTED_AT_LEAST, 1))) { 13 if ((error = checkarg(argc, "title_align", EXPECTED_AT_LEAST, 1))) {
@@ -21,6 +25,8 @@ struct cmd_results *cmd_title_align(int argc, char **argv) {
21 "Expected 'title_align left|center|right'"); 25 "Expected 'title_align left|center|right'");
22 } 26 }
23 27
28 root_for_each_container(arrange_title_bar_iterator, NULL);
29
24 for (int i = 0; i < root->outputs->length; ++i) { 30 for (int i = 0; i < root->outputs->length; ++i) {
25 struct sway_output *output = root->outputs->items[i]; 31 struct sway_output *output = root->outputs->items[i];
26 output_damage_whole(output); 32 output_damage_whole(output);