From 9ab587064260f1d18d18517dfb1fcfa7114c9e15 Mon Sep 17 00:00:00 2001 From: WhySoBad <49595640+WhySoBad@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:09:59 +0200 Subject: [PATCH] fix: check whether description is empty --- src/VirtualDesk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VirtualDesk.cpp b/src/VirtualDesk.cpp index d5e369d..9046ee8 100644 --- a/src/VirtualDesk.cpp +++ b/src/VirtualDesk.cpp @@ -184,5 +184,5 @@ Layout VirtualDesk::generateCurrentMonitorLayout() { std::string VirtualDesk::monitorDesc(const CMonitor* monitor) { if (!monitor->output) return monitor->szName; - return monitor->output->description; + return monitor->szDescription.empty() ? monitor->szName : monitor->szDescription; }