fix regression from eb1a6a1b6

This commit is contained in:
Emmanuel Lepage Vallee 2015-05-26 01:00:07 -04:00
parent 7672d3f26a
commit c9c0516ed5
2 changed files with 6 additions and 4 deletions

View File

@ -82,7 +82,9 @@ function module.highlight()
end end
function module.hide() function module.hide()
w.visible = false if w then
w.visible = false
end
end end
return module return module

View File

@ -89,7 +89,7 @@ end
local function select_screen(scr_index,move,old_screen) local function select_screen(scr_index,move,old_screen)
if scr_index ~= old_screen then if scr_index ~= old_screen then
local c = last_clients[scr_index] local c = last_clients[scr_index]
if not pcall(c) then if pcall(c) then
last_clients[scr_index] = nil last_clients[scr_index] = nil
c = nil c = nil
end end
@ -238,4 +238,4 @@ capi.client.connect_signal("focus",function(c)
end) end)
return module return module
-- kate: space-indent on; indent-width 2; replace-tabs on; -- kate: space-indent on; indent-width 2; replace-tabs on;