Skip to content

Instantly share code, notes, and snippets.

@blueyed
Created March 31, 2016 21:41
Show Gist options
  • Save blueyed/4d757f5e0d9cd86b418ec47d5ed5549f to your computer and use it in GitHub Desktop.
Save blueyed/4d757f5e0d9cd86b418ec47d5ed5549f to your computer and use it in GitHub Desktop.
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