Package: awesome
Version: 4.0-1
Severity: normal

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),
 
     -- Prompt
-    awful.key({ modkey },            "r",     function () 
mypromptbox[mouse.screen]:run() end),
+    awful.key({ modkey },            "r",     function () 
mypromptbox[mouse.screen.index]:run() end),
 
     awful.key({ modkey }, "x",
               function ()
                   awful.prompt.run({ prompt = "Run Lua code: " },
-                  mypromptbox[mouse.screen].widget,
+                  mypromptbox[mouse.screen.index].widget,
                   awful.util.eval, nil,
                   awful.util.getdir("cache") .. "/history_eval")
               end),

Bye Jörg

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages awesome depends on:
ii  dbus-x11                  1.10.14-1
ii  gir1.2-freedesktop        1.50.0-1
ii  gir1.2-pango-1.0          1.40.3-3
ii  libc6                     2.24-9
ii  libcairo2                 1.14.8-1
ii  libdbus-1-3               1.10.14-1
ii  libgdk-pixbuf2.0-0        2.36.4-1
ii  libglib2.0-0              2.50.2-2
ii  liblua5.1-0               5.1.5-8.1+b2
ii  libstartup-notification0  0.12-4
ii  libx11-6                  2:1.6.4-2
ii  libxcb-cursor0            0.1.1-3
ii  libxcb-icccm4             0.4.1-1
ii  libxcb-keysyms1           0.4.0-1
ii  libxcb-randr0             1.12-1
ii  libxcb-render0            1.12-1
ii  libxcb-shape0             1.12-1
ii  libxcb-util0              0.3.8-3
ii  libxcb-xinerama0          1.12-1
ii  libxcb-xkb1               1.12-1
ii  libxcb-xrm0               1.0-2
ii  libxcb-xtest0             1.12-1
ii  libxcb1                   1.12-1
ii  libxdg-basedir1           1.2.0-1
ii  libxkbcommon-x11-0        0.7.1-1
ii  libxkbcommon0             0.7.1-1
ii  lua-lgi                   0.9.1-1
ii  menu                      2.1.47

Versions of packages awesome recommends:
ii  feh                2.18-1
ii  rlwrap             0.42-3
ii  x11-xserver-utils  7.7+7

awesome suggests no packages.

-- no debconf information

Reply via email to