ewmh: Ignore request::geometry for tiled clients

It causes flicker
This commit is contained in:
Emmanuel Lepage Vallee 2016-04-28 16:46:09 -04:00
parent cdcfb913f1
commit 688021d087
1 changed files with 8 additions and 0 deletions

View File

@ -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