summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/window.c b/window.c
index 10629042..2108e001 100644
--- a/window.c
+++ b/window.c
@@ -372,6 +372,16 @@ window_remove_ref(struct window *w)
void
window_set_name(struct window *w, const char *new_name)
{
+#ifdef TMATE
+ /*
+ * We don't want to sync the layout too much.
+ * We might want to have some sort of timer for when to
+ * sync the layout.
+ */
+ if (!strcmp(w->name, new_name))
+ return;
+#endif
+
free(w->name);
w->name = xstrdup(new_name);
notify_window_renamed(w);