signal: revert forward_as_tuple

cant use references as signals expect a copy/move.
This commit is contained in:
Tom Englund 2025-12-20 02:10:49 +01:00
parent 8ca26cee4d
commit c5f4f7d1ae

View file

@ -36,7 +36,7 @@ namespace Hyprutils {
if constexpr (sizeof...(Args) == 0) if constexpr (sizeof...(Args) == 0)
emitInternal(nullptr); emitInternal(nullptr);
else { else {
auto argsTuple = std::forward_as_tuple(args...); auto argsTuple = std::tuple<RefArg<Args>...>(args...);
if constexpr (sizeof...(Args) == 1) if constexpr (sizeof...(Args) == 1)
// NOLINTNEXTLINE: const is reapplied by handler invocation if required // NOLINTNEXTLINE: const is reapplied by handler invocation if required