You are not logged in.

#1 2014-04-03 02:58:40

pengw
Member
Registered: 2014-04-03
Posts: 6

[SOLVED] awesome dynamic tagging order confusion

I have customized awesome WM's configuration to use awesome's awful.tag for Shifty-like dynamic tagging (rc.lua): https://github.com/pw4ever/awesome-wm-c … ter/rc.lua

All works well up to v3.5.2. However, recent upgrades of v3.5.3 and v3.5.4 cause problems with regards to "add/move tag."

In particular, the following code for "add a new tag" works in v3.5.2 but not v3.5.3/v3.5.4

-- add tag *after* selected
awful.key({modkey}, "a",
function ()
    local scr = mouse.screen
    local sel_idx = awful.tag.getidx()

    awful.prompt.run({prompt = "<span fgcolor='red'>new tag: </span>"},
    mypromptbox[scr].widget,
    function (text)
        if #text>0 then
            local tag = awful.tag.add(text)
            awful.tag.setscreen(tag, scr)
            awful.tag.move(sel_idx and sel_idx+1 or 1, tag)
            awful.tag.viewonly(tag)
        end
    end,
    nil)
end),

What I mean by "working in v3.5.2" are shown by the following cases  (* suffixes the current "selected" tag, space separates tags, and <> quote the tag I type in after pressing the keybinding "Modkey+a")
a*    <b>->   a b*
a* b    <c>->    a c* b
a c* b   <d>->   a c d* b
a c* d b  <e>->    a c e* d b

However, the same code leads to the following (apparently random) behavior in v3.5.3/3.5.4:
a*   <b>->   a b*
a* b   <c>->  a b c*
a* b c   <d>->  a c b d*
a* c b d  <e>->  a d c b e*

Any suggestion on debugging?

Last edited by pengw (2014-04-04 04:58:53)

Offline

#2 2014-04-03 05:10:29

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [SOLVED] awesome dynamic tagging order confusion

I think this post should not be in the newbie corner. Furthermore,if it's a regression then a bisect should suffice (I think they are using git).


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-04-03 21:43:42

pengw
Member
Registered: 2014-04-03
Posts: 6

Re: [SOLVED] awesome dynamic tagging order confusion

Thanks for reply. I have tracked down the problem and issued an upstream bug report.

https://awesome.naquadah.org/bugs/index … sk_id=1249

Last edited by pengw (2014-04-03 21:44:13)

Offline

Board footer

Powered by FluxBB