From 81e59cdfc86e9f120aa85ea94193c092346432a0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 9 Sep 2015 22:26:39 +0200 Subject: [PATCH] ewmh.activate: raise a client always When a client is not visible, this would adjust its stacking order still. This also addresses https://github.com/awesomeWM/awesome/issues/472, because it raises unminimized clients after they got focused. --- lib/awful/ewmh.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 38303f0d..c212d2a4 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -162,9 +162,8 @@ end function ewmh.activate(c, context, hints) client.focus = c if hints and hints.raise then - if awesome.startup or c:isvisible() then - c:raise() - else + c:raise() + if not awesome.startup and not c:isvisible() then c.urgent = true end end