xrandr.lua: Remove useless use of unpack()

This code would have to check if unpack or table.unpack is the function
to use. Instead of adding this check, this commit just removes the
trivial use of unpack.

Fixes: https://github.com/awesomeWM/awesome/issues/2802
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2019-06-26 13:29:42 +02:00
parent c75b355d50
commit 33506582c6
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ local function xrandr()
label = "Keep the current configuration" label = "Keep the current configuration"
state.index = nil state.index = nil
else else
label, action = unpack(next) label, action = next[1], next[2]
end end
state.cid = naughty.notify({ text = label, state.cid = naughty.notify({ text = label,
icon = icon_path, icon = icon_path,