diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x11.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1891,15 +1891,17 @@ puglViewStringChanged(PuglView* const view, break; case PUGL_WINDOW_TITLE: - XStoreName(display, view->impl->win, value); - XChangeProperty(display, - view->impl->win, - atoms->NET_WM_NAME, - atoms->UTF8_STRING, - 8, - PropModeReplace, - (const uint8_t*)value, - (int)strlen(value)); + if (value) { + XStoreName(display, view->impl->win, value); + XChangeProperty(display, + view->impl->win, + atoms->NET_WM_NAME, + atoms->UTF8_STRING, + 8, + PropModeReplace, + (const uint8_t*)value, + (int)strlen(value)); + } break; } |