summaryrefslogtreecommitdiff
path: root/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'events.c')
-rw-r--r--events.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/events.c b/events.c
index cd6cf13..98180e8 100644
--- a/events.c
+++ b/events.c
@@ -351,8 +351,10 @@ property_notify (XEvent *ev)
if (ev->xproperty.atom == XA_WM_NAME)
{
printf ("updating window name\n");
- update_window_name (win);
- update_window_names (win->scr);
+ if (update_window_name (win))
+ {
+ update_window_names (win->scr);
+ }
}
}
}