Merge pull request #2327 from laszloth/master

Add a beautiful option to remove borders when maximized
This commit is contained in:
mergify[bot] 2018-07-30 06:39:38 +00:00 committed by GitHub
commit b9e981ba63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,10 @@ local ewmh = {
-- @beautiful beautiful.fullscreen_hide_border -- @beautiful beautiful.fullscreen_hide_border
-- @tparam[opt=true] boolean 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) --- The list of all registered generic request::activate (focus stealing)
-- filters. If a filter is added to only one context, it will be in -- filters. If a filter is added to only one context, it will be in
-- `ewmh.contextual_activate_filters`["context_name"]. -- `ewmh.contextual_activate_filters`["context_name"].
@ -291,7 +295,8 @@ function ewmh.geometry(c, context, hints)
props.honor_padding = beautiful.maximized_honor_padding ~= false props.honor_padding = beautiful.maximized_honor_padding ~= false
end 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.ignore_border_width = true
props.zap_border_width = true props.zap_border_width = true
end end