diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 1f3805402..71acec050 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -1857,12 +1857,7 @@ end -- Connect to "focus" signal, and allow to disable tracking. do local disabled_count = 1 - --- Disable history tracking. - -- - -- See `awful.client.focus.history.enable_tracking` to enable it again. - -- @treturn int The internal value of `disabled_count` (calls to this - -- function without calling `awful.client.focus.history.enable_tracking`). - -- @staticfct awful.client.focus.history.disable_tracking + function client.focus.history.disable_tracking() disabled_count = disabled_count + 1 if disabled_count == 1 then @@ -1871,12 +1866,6 @@ do return disabled_count end - --- Enable history tracking. - -- - -- This is the default, but can be disabled - -- through `awful.client.focus.history.disable_tracking`. - -- @treturn boolean True if history tracking has been enabled. - -- @staticfct awful.client.focus.history.enable_tracking function client.focus.history.enable_tracking() assert(disabled_count > 0) disabled_count = disabled_count - 1 @@ -1886,10 +1875,6 @@ do return disabled_count == 0 end - --- Is history tracking enabled? - -- @treturn bool True if history tracking is enabled. - -- @treturn int The number of times that tracking has been disabled. - -- @staticfct awful.client.focus.history.is_enabled function client.focus.history.is_enabled() return disabled_count == 0, disabled_count end diff --git a/lib/awful/client/focus.lua b/lib/awful/client/focus.lua index 487d7adcc..7b1eb39c7 100644 --- a/lib/awful/client/focus.lua +++ b/lib/awful/client/focus.lua @@ -218,6 +218,26 @@ function focus.global_bydirection(dir, c, stacked) end end +--- Is history tracking enabled? +-- @treturn bool True if history tracking is enabled. +-- @treturn int The number of times that tracking has been disabled. +-- @function awful.client.focus.history.is_enabled + +--- Enable history tracking. +-- +-- This is the default, but can be disabled +-- through `awful.client.focus.history.disable_tracking`. +-- @treturn boolean True if history tracking has been enabled. +-- @function awful.client.focus.history.enable_tracking + +--- Disable history tracking. +-- +-- See `awful.client.focus.history.enable_tracking` to enable it again. +-- @treturn int The internal value of `disabled_count` (calls to this +-- function without calling `awful.client.focus.history.enable_tracking`). +-- @function awful.client.focus.history.disable_tracking + + return focus -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80