awesome/lib/awful/autofocus.lua
Emmanuel Lepage Vallee 9cbc8a18c0 rc.lua: Revert moving the sloppy focus to awful.permissions.
This caused a behavior change it wasn't clear how to use the
permission API to change the focus mode.

The change will only take effect if the user override the API
level.
2020-02-08 17:59:16 -05:00

18 lines
946 B
Lua

---------------------------------------------------------------------------
-- This module used to be a "require only" module which, when explicitly
-- required, would allow handle focus when switching tags and other useful
-- corner cases. This code has been migrated to a more standard request::
-- API. The content itself is now in `awful.permissions`. This was required
-- to preserve backward compatibility since this module may or may not have
-- been loaded.
---------------------------------------------------------------------------
require("awful.permissions._common")._deprecated_autofocus_in_use()
if awesome.api_level > 4 then
--TODO v5: Remove `require("awful.autofocus")` from `rc.lua`.
require("gears.debug").deprecate(
"The `awful.autofocus` module is deprecated, remove the require() and "..
"look at the new `rc.lua` granted permission section in the client rules",
{deprecated_in=5}
)
end