awful.client: fix urgent.jumpto

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Ez 2008-11-15 09:53:21 +01:00 committed by Julien Danjou
parent d45e5f8600
commit 7a9fe19f4c
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
local hooks = require("awful.hooks")
local util = require("awful.util")
local layout = require("awful.layout")
local tag = require("awful.tag")
local pairs = pairs
local ipairs = ipairs
local table = table
@ -45,7 +46,7 @@ hooks.user.create('unmarked')
-- @return The first urgent client.
function urgent.get()
if #data.urgent > 0 then
return #data.urgent[1]
return data.urgent[1]
else
-- fallback behaviour: iterate through clients and get the first urgent
local clients = capi.client.get()