From fe89688136d56d5c473111752499d5084d946c43 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Wed, 13 Sep 2017 19:39:37 +0200 Subject: [PATCH] Fix deprecation warnings in scratchdrop --- scratch/drop.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scratch/drop.lua b/scratch/drop.lua index 4690e65..c86dc46 100644 --- a/scratch/drop.lua +++ b/scratch/drop.lua @@ -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