Add fix for idiot new awesomewm behavior.

Reference:
https://www.reddit.com/r/awesomewm/comments/5r9mgu/client_layout_not_preserved_when_switching/

What a dumb goddamn problem. Super glad the workaround is copy-pastable.
master
josiah 2 years ago
parent d70c7b1e42
commit fc75b89a0d

@ -624,3 +624,22 @@ if autorun then
awful.util.spawn(autorunApps[app])
end
end
tag.connect_signal("request::screen", function(t)
for s in screen do
if s ~= t.screen and
s.geometry.x == t.screen.geometry.x and
s.geometry.y == t.screen.geometry.y and
s.geometry.width == t.screen.geometry.width and
s.geometry.height == t.screen.geometry.height then
local t2 = awful.tag.find_by_name(s, t.name)
if t2 then
t:swap(t2)
else
t.screen = s
end
return
end
end
end)

Loading…
Cancel
Save