From c501fffbd577ce6c47147e384dac4fedc00e3c35 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 28 Sep 2014 23:28:46 -0400 Subject: [PATCH] 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. --- README.md | 3 --- init.lua | 8 -------- 2 files changed, 11 deletions(-) diff --git a/README.md b/README.md index cf88407..b50f854 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/init.lua b/init.lua index dfc6a3c..bfba9e8 100755 --- a/init.lua +++ b/init.lua @@ -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)