From 685e0e1cea2b1303c0aba60c92997b12941f4295 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 15 Jun 2013 01:38:34 -0400 Subject: [PATCH] Fix issue #20 --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 3a94718..dbfd9bf 100644 --- a/init.lua +++ b/init.lua @@ -154,9 +154,9 @@ local function match_client(c, startup) end --Last resort, create a new tag class_client[low] = class_client[low] or {tags={},properties={}} - local tmp,tag = class_client[low],awful.tag.add(c.class,{name=c.class,volatile=true,screen=(c.screen <= capi.screen.count()) + local tmp,tag = class_client[low],awful.tag.add(c.class,{name=c.class,volatile=true,exclusive=true,screen=(c.screen <= capi.screen.count()) and c.screen or 1,layout=settings.default_layout or awful.layout.suit.max}) - tmp.tags[#tmp.tags+1] = {name=c.class,instances = {[c.screen]=tag},volatile=true,screen=c.screen} + tmp.tags[#tmp.tags+1] = {name=c.class,instances = {[c.screen]=tag},volatile=true,screen=c.screen,exclusive=true} c:tags({tag}) if awful.tag.getproperty(tag,"focus_on_new") ~= false then awful.tag.viewonly(tag)