diff --git a/3rdparty/probe b/3rdparty/probe index f2466b91..eec33c8b 160000 --- a/3rdparty/probe +++ b/3rdparty/probe @@ -1 +1 @@ -Subproject commit f2466b9125e12b3a68720c82ca20f901c8b6d55a +Subproject commit eec33c8b56eb9f93de3925092245634c9a9d421c diff --git a/src/common/hunter.cpp b/src/common/hunter.cpp index f2c804c7..f519bac6 100644 --- a/src/common/hunter.cpp +++ b/src/common/hunter.cpp @@ -81,12 +81,12 @@ namespace hunter return scoped; } - void ready(window_filter_t flags) + void ready(const window_filter_t flags) { __scope = flags; __preys.clear(); - std::ranges::for_each(probe::graphics::windows(flags), + std::ranges::for_each(probe::graphics::windows(flags, false), [&](const auto& win) { __preys.emplace_back(prey_t::from(win)); }); std::ranges::for_each(probe::graphics::displays(), @@ -111,7 +111,7 @@ namespace hunter __preys.clear(); } - std::string to_string(prey_type_t type) + std::string to_string(const prey_type_t type) { switch (type) { case prey_type_t::rectangle: return "rectangle"; diff --git a/src/common/selector.cpp b/src/common/selector.cpp index 74ade582..e87d4a76 100644 --- a/src/common/selector.cpp +++ b/src/common/selector.cpp @@ -52,7 +52,6 @@ void Selector::start(const probe::graphics::window_filter_t flags) box_.range(probe::graphics::virtual_screen_geometry()); - // FIXME: 35ms -> 1ms, speed up hunter::ready(flags); select(hunter::hunt(QCursor::pos())); info_->show();