-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: work on aquamarine backend #54
Conversation
src/VirtualDesk.cpp
Outdated
@@ -184,5 +184,5 @@ Layout VirtualDesk::generateCurrentMonitorLayout() { | |||
std::string VirtualDesk::monitorDesc(const CMonitor* monitor) { | |||
if (!monitor->output) | |||
return monitor->szName; | |||
return monitor->output->description ? monitor->output->description : monitor->szName; | |||
return monitor->output->description; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should actually be:
return monitor->output->description; | |
return monitor->output->description.empty() ? monitor->szName : monitor->output->description; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you're right. I thought the description is always set.
Additionally, I've found the monitor->szDescription
field exists. This should be the same as the monitor->output->description
but at the convenience we don't have to go over the output which is more likely to have breaking changes
Ah also, I see you're merging directly into main, could you merge into dev instead? Thanks 🙏 |
Thanks for the reminder, I totally forgot to change the target branch Somehow, yesterday the build succeeded without installing aquamarine. I've now added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now! Also, once again, thank you so much for your effort in keeping this plugin up to date, it is very much appreciated :)
The new
aquamarine
backend no longer uses an char pointer array but the string from the standard library which cannot be a nullptr