Fix deprecation warnings in scratchdrop

This commit is contained in:
crater2150 2017-09-13 19:39:37 +02:00
parent 7fab902da6
commit fe89688136

View file

@ -71,7 +71,7 @@ function toggle(prog, vert, horiz, width, height, sticky, screen)
dropdown[prog][screen] = c dropdown[prog][screen] = c
-- Scratchdrop clients are floaters -- Scratchdrop clients are floaters
awful.client.floating.set(c, true) c.floating = true
-- Client geometry and placement -- Client geometry and placement
local screengeom = capi.screen[screen].workarea local screengeom = capi.screen[screen].workarea
@ -102,14 +102,14 @@ function toggle(prog, vert, horiz, width, height, sticky, screen)
-- Add manage signal and spawn the program -- Add manage signal and spawn the program
attach_signal("manage", spawnw) attach_signal("manage", spawnw)
awful.util.spawn(prog, false) awful.spawn(prog, false)
else else
-- Get a running client -- Get a running client
c = dropdown[prog][screen] c = dropdown[prog][screen]
-- Switch the client to the current workspace -- Switch the client to the current workspace
if c:isvisible() == false then c.hidden = true if c:isvisible() == false then c.hidden = true
awful.client.movetotag(awful.tag.selected(screen), c) c:move_to_tag(screen.selected_tag)
end end
-- Focus and raise if hidden -- Focus and raise if hidden