aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-11 19:55:23 -0400
committerGitHub <noreply@github.com>2018-09-11 19:55:23 -0400
commit7a295e89329ed7f17b3e370d826305d8334dceaf (patch)
treef1764112aac177817205249e1ee401e55deef242 /sway/commands
parentd8a96c9e4d758ac6659ed5c39fd2a86bc29d35bc (diff)
parent0b7fe54f9e9fe1a3ac548eaa9fefa2e4058a2493 (diff)
Merge pull request #2624 from RedSoxFan/update-tex-in-cmd-client
Update textures for cmd_client_* commands
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/client.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c
index d6b7de1a..6e5f08a2 100644
--- a/sway/commands/client.c
+++ b/sway/commands/client.c
@@ -1,8 +1,16 @@
#include "log.h"
#include "sway/commands.h"
#include "sway/config.h"
+#include "sway/output.h"
#include "sway/tree/container.h"
+static void rebuild_textures_iterator(struct sway_container *con, void *data) {
+ if (con->view) {
+ view_update_marks_textures(con->view);
+ }
+ container_update_title_textures(con);
+}
+
/**
* Parse the hex string into an integer.
*/
@@ -79,6 +87,15 @@ static struct cmd_results *handle_command(int argc, char **argv,
"Unable to parse child border color");
}
+ if (config->active) {
+ root_for_each_container(rebuild_textures_iterator, NULL);
+
+ for (int i = 0; i < root->outputs->length; ++i) {
+ struct sway_output *output = root->outputs->items[i];
+ output_damage_whole(output);
+ }
+ }
+
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}