diff --git a/src/events/Events.cpp b/src/events/Events.cpp index 428d9e7..68f60a7 100644 --- a/src/events/Events.cpp +++ b/src/events/Events.cpp @@ -24,7 +24,8 @@ void Events::scale(void *data, wl_output *wl_output, int32_t scale) { void Events::name(void *data, wl_output *wl_output, const char *name) { const auto PMONITOR = (SMonitor*)data; - PMONITOR->name = name; + if (name) + PMONITOR->name = name; } void Events::description(void *data, wl_output *wl_output, const char *description) {