Skip to content

Commit d7adfba

Browse files
committed
Use list remove func instead of std::ranges::remove
1 parent 1e45a7d commit d7adfba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "types.hpp"
1010
#include "xwayland.hpp"
1111

12-
#include <algorithm>
1312
#include <cassert>
1413
#include <utility>
1514

@@ -60,7 +59,7 @@ void Server::focus_view(std::shared_ptr<View>&& view, wlr_surface* surface) {
6059

6160
/* Move the view to the front */
6261
wlr_scene_node_raise_to_top(view->scene_node);
63-
std::ranges::remove(views, view);
62+
views.remove(view);
6463
for (const auto& it : views) {
6564
it->set_activated(false);
6665
}

0 commit comments

Comments
 (0)