Skip to content

Commit

Permalink
fix: check whether description is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
WhySoBad committed Jul 22, 2024
1 parent b7ef23e commit 9ab5870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VirtualDesk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 9ab5870

Please sign in to comment.