guard name

This commit is contained in:
vaxerski 2022-09-02 18:19:19 +02:00
parent d0ed94a52d
commit 13865551f2

View file

@ -24,6 +24,7 @@ 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;
if (name)
PMONITOR->name = name;
}