#852075 mouse.screen => m.s.index in example

#852075#5
Date:
2017-01-21 11:04:37 UTC
From:
To:
Hi,

if built my rc.lua with
/usr/share/awesome/lib/shifty/example.rc.lua. After the upgrade to awesome
4.0 I've got the error "attempt to index field '?' (a nil value)" when
pressing mod+r or mod+x. I've changed mouse.screen to mouse.screen.index
and now it works. I'm not very familiar with the awesome library and don't
know if the change is intended or mouse.screen should still work.

diff -u /tmp/example.rc.lua /usr/share/awesome/lib/shifty/example.rc.lua
--- /tmp/example.rc.lua	2017-01-21 12:02:54.019960207 +0100
+++ /usr/share/awesome/lib/shifty/example.rc.lua	2016-11-18 13:31:45.000000000 +0100
@@ -408,12 +408,12 @@
     --~ awful.key({ modkey, "Control" }, "n", awful.client.restore),

#852075#10
Date:
2017-01-31 09:22:12 UTC
From:
To:
There seem to be other places where mouse.screen is used. For instance,
awful.util.spawn always spawns windows on the first screen now, whereas
before it spawned stuff where the mouse cursor was.

#852075#15
Date:
2017-02-20 07:48:34 UTC
From:
To:
This is how I fixed the call to terminal, so that it spawn on the screen
under the mouse cursor:

+++ b/home/.config/awesome/rc.lua
@@ -261,7 +261,9 @@ globalkeys = awful.util.table.join(
         end),

#852075#20
Date:
2017-10-19 19:43:59 UTC
From:
To:
Reassigning this bug to awesome-extra, because the file
/usr/share/awesome/lib/shifty/example.rc.lua is shipped there.

When using the example rc.lua I also get several deprecation warnings.
It probably needs to be updated for the current awesome API.