awful.client: fix urgent.jumpto
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d45e5f8600
commit
7a9fe19f4c
|
@ -8,6 +8,7 @@
|
||||||
local hooks = require("awful.hooks")
|
local hooks = require("awful.hooks")
|
||||||
local util = require("awful.util")
|
local util = require("awful.util")
|
||||||
local layout = require("awful.layout")
|
local layout = require("awful.layout")
|
||||||
|
local tag = require("awful.tag")
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local table = table
|
local table = table
|
||||||
|
@ -45,7 +46,7 @@ hooks.user.create('unmarked')
|
||||||
-- @return The first urgent client.
|
-- @return The first urgent client.
|
||||||
function urgent.get()
|
function urgent.get()
|
||||||
if #data.urgent > 0 then
|
if #data.urgent > 0 then
|
||||||
return #data.urgent[1]
|
return data.urgent[1]
|
||||||
else
|
else
|
||||||
-- fallback behaviour: iterate through clients and get the first urgent
|
-- fallback behaviour: iterate through clients and get the first urgent
|
||||||
local clients = capi.client.get()
|
local clients = capi.client.get()
|
||||||
|
|
Loading…
Reference in New Issue