shims: Add client.first_tag.

This commit is contained in:
Emmanuel Lepage Vallee 2021-10-16 17:07:18 -07:00
parent 667a0dfc18
commit 56256d0c38
1 changed files with 13 additions and 1 deletions

View File

@ -62,6 +62,10 @@ function properties.set_screen(self, s)
self:emit_signal("property::screen")
end
function properties:get_first_tag()
return self:tags()[1]
end
-- Create fake clients to move around
function client.gen_fake(args)
local ret = gears_obj()
@ -126,7 +130,15 @@ function client.gen_fake(args)
end
function ret:isvisible()
return true
if ret.minimized or ret.hidden then return false end
local vis = false
for _, tag in ipairs(ret:tags()) do
vis = vis or tag.selected
end
return vis
end
-- Used for screenshots