Fix compatibility with Awesome git-master
This commit is contained in:
parent
7440926ee0
commit
1a87e0734a
|
@ -148,6 +148,10 @@ end
|
|||
local function next_screen(ss,dir,move)
|
||||
local scr_index = screens_inv[ss]
|
||||
|
||||
if type(scr_index) == "screen" then
|
||||
scr_index = scr_index.index
|
||||
end
|
||||
|
||||
if dir == "left" then
|
||||
scr_index = scr_index == 1 and #screens or scr_index - 1
|
||||
elseif dir == "right" then
|
||||
|
|
|
@ -221,7 +221,6 @@ local function drill(context, root, source)
|
|||
|
||||
if points then
|
||||
for k, point in ipairs(points) do
|
||||
print(#points)
|
||||
add_splitter(context, point)
|
||||
end
|
||||
end
|
||||
|
@ -250,7 +249,6 @@ local function find_split_points(context)
|
|||
context.add_x, context.add_y = wa.x, wa.y
|
||||
local source = drill(context, layout.hierarchy, nil)
|
||||
if source then
|
||||
print("\n\nGET", layout.hierarchy, layout.hierarchy:get_widget())
|
||||
context.source_root = layout.hierarchy:get_widget()
|
||||
end
|
||||
end
|
||||
|
@ -271,7 +269,6 @@ end
|
|||
local function start_keygrabber(context)
|
||||
capi.keygrabber.run(function(mod, key, event)
|
||||
local hook = context.hooks[key]
|
||||
print("\n\nKEY", key, hook)
|
||||
if hook and hook.callback and event == "press" then
|
||||
context.hooks[key]:callback(context)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue