mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
9cbc8a18c0
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.
18 lines
946 B
Lua
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
|