Skip to content

Instantly share code, notes, and snippets.

@symbioquine
symbioquine / patch.lua
Last active August 11, 2019 15:40 — forked from alexander-yakushev/patch.lua
Fix move_to_screen in AwesomeWM v4.3
function smart_move_to_screen(c, dir)
local was_maximized = { h = false, v = false }
if c.maximized_horizontal then
c.maximized_horizontal = false
was_maximized.h = true
end
if c.maximized_vertical then
c.maximized_vertical = false
was_maximized.v = true
end