From f6ccda84999372733ea92c29e28e550eaa3b1bfd Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 21 Feb 2016 16:44:40 +0100 Subject: [PATCH] awful.ewmh: React to workarea changes This commit makes awful.ewmh re-apply the maximized geometry to any maximized clients when the workarea of a screen changes. This happens e.g. when a wibox that is docked to the edge of the screen is hidden. Fixes: https://github.com/awesomeWM/awesome/issues/705 Signed-off-by: Uli Schlachter --- lib/awful/ewmh.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index e2b5ed8ee..0fffa6dd7 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -202,6 +202,11 @@ client.connect_signal("request::fullscreen", fullscreen) client.connect_signal("property::screen", screen_change) client.connect_signal("property::border_width", geometry_change) client.connect_signal("property::geometry", geometry_change) +screen.connect_signal("property::workarea", function(s) + for _, c in pairs(client.get(s)) do + geometry_change(c) + end +end) return ewmh