Fix deprecation warnings in scratchdrop
This commit is contained in:
parent
7fab902da6
commit
fe89688136
|
@ -71,7 +71,7 @@ function toggle(prog, vert, horiz, width, height, sticky, screen)
|
|||
dropdown[prog][screen] = c
|
||||
|
||||
-- Scratchdrop clients are floaters
|
||||
awful.client.floating.set(c, true)
|
||||
c.floating = true
|
||||
|
||||
-- Client geometry and placement
|
||||
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
|
||||
attach_signal("manage", spawnw)
|
||||
awful.util.spawn(prog, false)
|
||||
awful.spawn(prog, false)
|
||||
else
|
||||
-- Get a running client
|
||||
c = dropdown[prog][screen]
|
||||
|
||||
-- Switch the client to the current workspace
|
||||
if c:isvisible() == false then c.hidden = true
|
||||
awful.client.movetotag(awful.tag.selected(screen), c)
|
||||
c:move_to_tag(screen.selected_tag)
|
||||
end
|
||||
|
||||
-- Focus and raise if hidden
|
||||
|
|
Loading…
Reference in a new issue