From 1090719d677c86e90a1394a34f0effb418728493 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 12 Apr 2014 12:18:34 +0200 Subject: [PATCH] remove awful.widget.taglist.gettag (FS#1256) It's been broken since ages. Signed-off-by: Uli Schlachter --- lib/awful/mouse/init.lua.in | 24 ------------------------ lib/awful/widget/taglist.lua.in | 7 ------- 2 files changed, 31 deletions(-) diff --git a/lib/awful/mouse/init.lua.in b/lib/awful/mouse/init.lua.in index b309723f6..f98cf8d55 100644 --- a/lib/awful/mouse/init.lua.in +++ b/lib/awful/mouse/init.lua.in @@ -211,30 +211,6 @@ end mouse.client.dragtotag = { } ---- Move a client to a tag by drag'n'dropping it over a taglist widget --- @param c The client to move -function mouse.client.dragtotag.widget(c) - capi.mousegrabber.run(function (_mouse) - local button_down = false - for _, v in ipairs(_mouse.buttons) do - if v then button_down = true end - end - if not button_down then - local w = mouse.widget_under_pointer() - if w and widget.taglist.gettag(w) then - local t = widget.taglist.gettag(w) - local s = tag.getscreen(t) - if s ~= c.screen then - aclient.movetoscreen(c, s) - end - aclient.movetotag(t, c) - end - return false - end - return true - end, "fleur") -end - --- Move a client to a tag by dragging it onto the left / right side of the screen -- @param c The client to move function mouse.client.dragtotag.border(c) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index 5f854912c..0b1304121 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -130,13 +130,6 @@ local function taglist_update(s, w, buttons, filter, data, style, update_functio update_function(w, buttons, label, data, tags) end ---- Get the tag object the given widget appears on. --- @param widget The widget the look for. --- @return The tag object. -function taglist.gettag(widget) - return common.tagwidgets[widget] -end - --- Create a new taglist widget. The last two arguments (update_function -- and base_widget) serve to customize the layout of the taglist (eg. to -- make it vertical). For that, you will need to copy the