THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Bash Vi (bash.vi)
Attached to Project - awesome
Summary - Incorrect documentation in awful.viewnext and .viewprev
Task Type - Bug Report
Category - awful
Status - Unconfirmed
Assigned To - Operating System - All
Severity - Very Low
Priority - Normal
Reported Version - 3.4.11
Due in Version - Undecided
Due Date - Undecided
Details - Hey everyone

I'm really not a lua programmer, I was just hacking around in my rc.lua file on 
Gentoo when I noticed a minor error in the awful documentation over here: 
http://awesome.naquadah.org/doc/api/modules/awful.tag.html#viewprev

For the optional parameter "screen", it says: "screen: The screen number."
However, the code below (just modified rc.lua, and yes, I did check the syntax 
with awesome -k) didn't work for me:

   awful.key({modkey,            }, "Left",
       function ()
               for s = 1, screen.count() do
                       awful.tag.viewprev(s)
end end),

I just did as the documentation said, and give the number of the screen as 
parameter. This doesn't work. What does work is this:

   awful.key({modkey,            }, "Left",
       function ()
               for s = 1, screen.count() do
                       awful.tag.viewprev(screen[s])
end end),

Here I don't pass the number of the screen, but the actual screen (selected 
from the array with screen[s]).
So I guess the documentation should not say "The screen number.", but instead just 
"the screen".
Same applies to awful.viewnext(screen) too...

Sorry if I got something wrong...

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

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