THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Daniel Hahler (blueyed) 

Attached to Project - awesome
Summary - "Client got tagged with wrong tag"
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - This just popped up (after updating and restarting awesome), when 
I've started a download from Firefox.

The tag has screen=2, but the client (and its parent are on 1):

string : Client got tagged with wrong tag:
c.screen: 1, c.transient_for.screen: 1, awful.tag.getscreen(t): 2, c.name 
Opening ignore_enter_leave_on_unmanage.patch,
stack traceback:
        /home/daniel/.config/awesome/rc.lua:854: in function 
</home/daniel/.config/awesome/rc.lua:852>
        [C]: in function 'tags'
        /usr/local/share/awesome/lib/awful/tag.lua:571: in function 
</usr/local/share/awesome/lib/awful/tag.lua:563> (s

The code is this:

-- Register standards signals
capi.client.connect_signal("manage", function(c, startup)
    -- If we are not managing this application at startup,
    -- move it to the screen where the mouse is.
    -- We only do it for "normal" windows (i.e. no dock, etc).
    if not startup and c.type ~= "desktop" and c.type ~= "dock" then
        if c.transient_for then
            c.screen = c.transient_for.screen
            if not c.sticky then
-->             c:tags(c.transient_for:tags())
            end
        else
            c.screen = capi.mouse.screen
        end
    end
    c:connect_signal("property::screen", tag.withcurrent)
end)


I use this to track/debug this:
-- DEBUG
client.connect_signal("tagged", function(c, t)
    if c.screen == awful.tag.getscreen(t) then return end
    local msg = debug.traceback("Client got tagged with wrong tag:\n"
        .. "c.screen: " .. 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.name " .. c.name
        .. ", t.name " .. t.name
        .. ", t " .. tostring(t)
    )
    bdebug(msg)
    bnote(msg)
end)


This is with Awesome master.

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1242

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to