mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 06:09:48 +01:00
guard name
This commit is contained in:
parent
d0ed94a52d
commit
13865551f2
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue