awesome/lib/awful
Uli Schlachter 2b0398c59b awful.tag: Use sane tag index values (FS#1125)
Since commit d8a93dafa3, tags have an "index" property which decides about
the order in which they are displayed in the taglist. If a tag doesn't have this
property set, the next call to awful.tag.gettags() will fix this and "invent" an
index for this new tag.

However, if multiple tags didn't have an "index" property, gettags() would
assign all of them the same index. The following call to table.sort() would then
do random magic to these tags (remember: table.sort() is not a stable sorting
algorithm, so it is allowed to randomly swap around entries which have the same
sorting key).

Fix this by making sure that the new "index" properties are different from each
other.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-03-16 16:51:55 +01:00
..
layout Make awful.layout.inc() accept a screen number 2013-02-19 19:49:07 +01:00
mouse mouse.resize: Allow resize across screens (FS#1059) 2012-12-14 19:38:30 +01:00
widget awful.tag: add index property for custom tag order 2013-03-12 15:14:38 +01:00
autofocus.lua.in Tags: Remove screen property 2012-10-23 10:05:34 +02:00
button.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
client.lua.in awful.client.toggletag: Use tag.getscreen() 2012-11-19 18:56:18 +01:00
completion.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
dbus.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
ewmh.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
init.lua.in Move size hints handling back into C (FS#1117) 2013-03-10 12:13:32 +01:00
key.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00
keygrabber.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
menu.lua.in wibox.layout.align: make the middle widget really centered 2013-01-05 23:05:30 +01:00
placement.lua.in awful.placement.no_offscreen: Fix border handling (FS#1065) 2012-12-16 18:11:57 +01:00
prompt.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
remote.lua.in More fixes for the recent module() removal 2012-06-17 15:24:01 +02:00
rules.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00
screen.lua.in awful.screen.getbycoord(): Always return a valid screen 2013-01-05 20:56:20 +01:00
startup_notification.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
tag.lua.in awful.tag: Use sane tag index values (FS#1125) 2013-03-16 16:51:55 +01:00
titlebar.lua.in Update titlebar color when focus changes (FS#1056) 2012-11-29 16:52:19 +01:00
tooltip.lua.in awful.tooltip: Don't place tooltips when text changes 2013-01-05 20:54:38 +01:00
util.lua.in awful.util.spawn_with_shell: Use table as argument 2013-03-10 15:00:05 +01:00
wibox.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00