Remove the 'clone_on' property

This feature never fully worked and cannot work. It is *impossible*
to implement it with the current Awesome core design.

While I know it is often requested, I cannot and will not support
it any longer. This belong to the Awesome API, not Tyrannical.
This commit is contained in:
Emmanuel Lepage Vallee 2014-09-28 23:28:46 -04:00
parent ab51c72484
commit c501fffbd5
2 changed files with 0 additions and 11 deletions

View File

@ -172,8 +172,6 @@ tyrannical.tags = {
init = true,
exclusive = true,
screen = 1,
clone_on = 2, -- Create a single instance of this tag on screen 1, but also show it on screen 2
-- The tag can be used on both screen, but only one at once
layout = awful.layout.suit.max ,
class ={
"Kate", "KDevelop", "Codeblocks", "Code::Blocks" , "DDD", "kate4"}
@ -229,7 +227,6 @@ Then edit this section to fit your needs.
| ------------------------- | ---------------------------------------------------- |:----------------:|
| **class** | Match these classes to this tag | array of string |
| **instance** | Match these instances to this tag. ★ | array of string |
| **clone_on** | Create a clone on screen(s) | number or array |
| **exclusive** | Allow only client from the "class" attributes | boolean |
| **exec_once** | Execute when the tag is first selected | string (command) |
| **force_screen** | Force a screen | boolean |

View File

@ -229,10 +229,6 @@ awful.tag.add,awful.tag._setscreen,awful.tag._viewonly = function(tag,props)
props.screen,props.instances = props.screen or capi.mouse.screen,props.instances or setmetatable({}, { __mode = 'v' })
props.mwfact,props.layout = props.mwfact or settings.mwfact,props.layout or settings.default_layout or awful.layout.max
local t = awful.tag._add(tag,props)
if prop(t,"clone_on") and prop(t,"clone_on") ~= t.screen then
local t3 = awful.tag._add(tag,{screen = prop(t,"clone_on"), clone_of = t,icon=awful.tag.geticon(t)})
--TODO prevent clients from being added to the clone
end
fallbacks[#fallbacks+1] = props.fallback and t or nil
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
t.selected = props.selected or false
@ -244,10 +240,6 @@ awful.tag.viewonly = function(t)
if not t then return end
if not awful.tag.getscreen(t) then awful.tag.setscreen(capi.mouse.screen) end
awful.tag._viewonly(t)
if prop(t,"clone_of") then
awful.tag.swap(t,prop(t,"clone_of"))
awful.tag.viewonly(prop(t,"clone_of"))
end
end
capi.tag.connect_signal("property::fallback",function(t)