diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 23:07:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 23:07:17 +0100 |
| commit | 0e64d9e2b6aa57982213b0a97374911948889f49 (patch) | |
| tree | e7faf817f0a8f8a5fee008219cb3971c0a62cc16 /src/config/lua/bindings/LuaBindingsDispatchers.cpp | |
| parent | 84d45bd13acce0b16c8f86e83144f22b18d9398e (diff) | |
config/lua: don't pop up an error if no target was found (#14175)
Diffstat (limited to 'src/config/lua/bindings/LuaBindingsDispatchers.cpp')
| -rw-r--r-- | src/config/lua/bindings/LuaBindingsDispatchers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/lua/bindings/LuaBindingsDispatchers.cpp b/src/config/lua/bindings/LuaBindingsDispatchers.cpp index 61270f9c..737562c6 100644 --- a/src/config/lua/bindings/LuaBindingsDispatchers.cpp +++ b/src/config/lua/bindings/LuaBindingsDispatchers.cpp @@ -485,7 +485,7 @@ static int dsp_fullscreenWindowWithAction(lua_State* L) { const auto target = maybeW.value_or(Desktop::focusState()->window()); if (!target) - return Internal::configError(L, "No target found."); + return 0; const bool currentlyMode = target->isEffectiveInternalFSMode(mode); @@ -512,7 +512,7 @@ static int dsp_fullscreenState(lua_State* L) { const auto target = maybeW.value_or(Desktop::focusState()->window()); if (!target) - return Internal::configError(L, "No target found."); + return 0; const auto CURRENT = target->m_fullscreenState; const bool atDesiredState = CURRENT.internal == desiredInternal && CURRENT.client == desiredClient; |
