Skip to content

Commit

Permalink
core: remove comma from monitor description (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaowenHu96 committed Apr 12, 2024
1 parent 07e8e6c commit 02ee7ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/events/Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ void Events::name(void* data, wl_output* wl_output, const char* name) {

void Events::description(void* data, wl_output* wl_output, const char* description) {
const auto PMONITOR = (SMonitor*)data;
// remove comma character from description. This allow monitor specific rules to work on monitor with comma on their description
std::string m_description = description;
std::erase(m_description, ',');

PMONITOR->description = description;
PMONITOR->description = m_description;
}

void Events::handleCapabilities(void* data, wl_seat* wl_seat, uint32_t capabilities) {
Expand Down

0 comments on commit 02ee7ff

Please sign in to comment.