remove awful.widget.taglist.gettag (FS#1256)
It's been broken since ages. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
302aabea3a
commit
1090719d67
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue