refactor: use std::ranges whenever possible (#10584)
This commit is contained in:
parent
9bf1b49144
commit
9190443d95
50 changed files with 137 additions and 146 deletions
|
|
@ -214,7 +214,7 @@ void CXWaylandSurface::restackToTop() {
|
|||
xcb_configure_window(g_pXWayland->m_wm->m_connection, m_xID, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||
|
||||
auto& stack = g_pXWayland->m_wm->m_mappedSurfacesStacking;
|
||||
auto it = std::find(stack.begin(), stack.end(), m_self);
|
||||
auto it = std::ranges::find(stack, m_self);
|
||||
|
||||
if (it != stack.end())
|
||||
std::rotate(it, it + 1, stack.end());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue