From 4389297b58048d01897bea1fe08d8d3a41258df2 Mon Sep 17 00:00:00 2001 From: cmertz Date: Wed, 27 Jul 2016 09:54:42 +0200 Subject: [PATCH] restore client.border_width after fullscreen --- lib/awful/placement.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index c003d3f1..0eb7825a 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -278,6 +278,7 @@ local function store_geometry(d, reqtype) if not data[d][reqtype] then data[d][reqtype] = {} end data[d][reqtype] = d:geometry() data[d][reqtype].screen = d.screen + data[d][reqtype].border_width = d.border_width end --- Get the margins and offset @@ -1161,6 +1162,9 @@ function placement.restore(d, args) if not memento then return false end memento.screen = nil --TODO use it + + d.border_width = memento.border_width + d:geometry(memento) return true end