From 647756fd152f75e8e21b5432264d943a6c88d9c3 Mon Sep 17 00:00:00 2001 From: Laszlo Toth Date: Sun, 1 Jul 2018 12:18:50 +0200 Subject: [PATCH] Add a beautiful option to remove borders when maximized No intended change in previous behavior, so it's disabled by default. --- lib/awful/ewmh.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 4657a372..77728e2f 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -29,6 +29,10 @@ local ewmh = { -- @beautiful beautiful.fullscreen_hide_border -- @tparam[opt=true] boolean fullscreen_hide_border +--- Hide the border on maximized clients. +-- @beautiful beautiful.maximized_hide_border +-- @tparam[opt=false] boolean maximized_hide_border + --- The list of all registered generic request::activate (focus stealing) -- filters. If a filter is added to only one context, it will be in -- `ewmh.contextual_activate_filters`["context_name"]. @@ -291,7 +295,8 @@ function ewmh.geometry(c, context, hints) props.honor_padding = beautiful.maximized_honor_padding ~= false end - if original_context == "fullscreen" and beautiful.fullscreen_hide_border ~= false then + if (original_context == "fullscreen" and beautiful.fullscreen_hide_border ~= false) or + (original_context == "maximized" and beautiful.maximized_hide_border == true) then props.ignore_border_width = true props.zap_border_width = true end