Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
local tag_screen_debug = function(c, t)
local t = t or c:tags()[1]
if not t then return end
if c.screen == awful.tag.getscreen(t) then return end
local msg = debug.traceback("Client got tagged with wrong tag:\n"
.. "c.screen: " .. tostring(c.screen)
.. ", c.transient_for.screen: " .. (c.transient_for and c.transient_for.screen or "not transient")
.. ", awful.tag.getscreen(t): " .. awful.tag.getscreen(t)
.. ", c " .. tostring(c)
.. ", c.name " .. c.name
-- .. ", t.name " .. t.name
.. ", t " .. tostring(t)
)
bdebug(msg)
bnote(msg, {timeout=0})
end
client.connect_signal("tagged", tag_screen_debug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment