From 688021d087082accd9348f8c08c4c038b923a52e Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 28 Apr 2016 16:46:09 -0400 Subject: [PATCH] ewmh: Ignore request::geometry for tiled clients It causes flicker --- lib/awful/ewmh.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index ffe04fd7..f63ef505 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -15,6 +15,7 @@ local math = math local util = require("awful.util") local aclient = require("awful.client") local aplace = require("awful.placement") +local asuit = require("awful.layout.suit") local ewmh = {} @@ -160,6 +161,13 @@ local context_mapper = { -- @tparam string context The context -- @tparam[opt={}] table hints The hints to pass to the handler function ewmh.geometry(c, context, hints) + local layout = c.screen.selected_tag and c.screen.selected_tag.layout or nil + + -- Setting the geometry wont work unless the client is floating. + if (not c.floating) and (not layout == asuit.floating) then + return + end + context = context or "" local original_context = context