Merge pull request #830 from aroig/gh/deprecation-warning

fix deprecation warning
This commit is contained in:
Emmanuel Lepage Vallée 2016-04-17 16:44:21 -04:00
commit 3fe85a8f05
1 changed files with 3 additions and 5 deletions

View File

@ -15,7 +15,6 @@ local setmetatable = setmetatable
local table = table
local common = require("awful.widget.common")
local beautiful = require("beautiful")
local client = require("awful.client")
local util = require("awful.util")
local tag = require("awful.tag")
local flex = require("wibox.layout.flex")
@ -93,8 +92,7 @@ local function tasklist_label(c, args, tb)
-- Handle transient_for: the first parent that does not skip the taskbar
-- is considered to be focused, if the real client has skip_taskbar.
if not focused and capi.client.focus and capi.client.focus.skip_taskbar
and client.get_transient_for_matching(capi.client.focus,
function(cl)
and capi.client.focus:get_transient_for_matching(function(cl)
return not cl.skip_taskbar
end) == c then
focused = true