Created
March 31, 2016 21:41
-
-
Save blueyed/4d757f5e0d9cd86b418ec47d5ed5549f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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