mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
shifty: dialog window may stay on the same tag
This commit is contained in:
parent
728acbe62a
commit
39f6393be2
1 changed files with 1 additions and 3 deletions
|
@ -484,7 +484,6 @@ end
|
||||||
--@param c : client to be matched
|
--@param c : client to be matched
|
||||||
function match(c, startup)
|
function match(c, startup)
|
||||||
local nopopup, intrusive, nofocus, run, slave
|
local nopopup, intrusive, nofocus, run, slave
|
||||||
local wfact, struts, geom, float
|
|
||||||
local target_tag_names, target_tags = {}, {}
|
local target_tag_names, target_tags = {}, {}
|
||||||
local typ = c.type
|
local typ = c.type
|
||||||
local cls = c.class
|
local cls = c.class
|
||||||
|
@ -568,7 +567,6 @@ function match(c, startup)
|
||||||
target_tag_names = a.tag
|
target_tag_names = a.tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if a.float ~= nil then float = a.float end
|
|
||||||
if a.slave ~=nil then slave = a.slave end
|
if a.slave ~=nil then slave = a.slave end
|
||||||
if a.nopopup ~=nil then nopopup = a.nopopup end
|
if a.nopopup ~=nil then nopopup = a.nopopup end
|
||||||
if a.intrusive ~=nil then
|
if a.intrusive ~=nil then
|
||||||
|
@ -594,7 +592,7 @@ function match(c, startup)
|
||||||
elseif #sel > 0 then
|
elseif #sel > 0 then
|
||||||
for i, t in ipairs(sel) do
|
for i, t in ipairs(sel) do
|
||||||
local mc = awful.tag.getproperty(t, "max_clients")
|
local mc = awful.tag.getproperty(t, "max_clients")
|
||||||
if intrusive or
|
if intrusive or c.type == "dialog" or
|
||||||
not (awful.tag.getproperty(t, "exclusive") or
|
not (awful.tag.getproperty(t, "exclusive") or
|
||||||
(mc and mc >= #t:clients())) then
|
(mc and mc >= #t:clients())) then
|
||||||
table.insert(target_tags, t)
|
table.insert(target_tags, t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue