changed C++ std to C++23, use std::string::contains

This commit is contained in:
vaxerski
2022-07-06 16:50:11 +02:00
parent 0d7a8cca79
commit f9756d10d4
9 changed files with 29 additions and 29 deletions

View File

@@ -153,7 +153,7 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) {
if (pWindow->m_uSurface.xwayland->role) {
try {
std::string winrole = std::string(pWindow->m_uSurface.xwayland->role);
if (winrole.find("pop-up") != std::string::npos || winrole.find("task_dialog") != std::string::npos) {
if (winrole.contains("pop-up") || winrole.contains("task_dialog")) {
return true;
}
} catch (std::exception& e) {