From d2168a9889e57dab12345a166e3093a4945f8bab Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 6 Nov 2014 21:26:32 +0100 Subject: [PATCH] ewmh.activate: focus and especially raise clients during startup This fixes the focused client (possibly) not being raised after restarting awesome. --- lib/awful/ewmh.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/ewmh.lua.in b/lib/awful/ewmh.lua.in index b53320cb..3d25a1fc 100644 --- a/lib/awful/ewmh.lua.in +++ b/lib/awful/ewmh.lua.in @@ -135,10 +135,10 @@ end -- Activate a window function ewmh.activate(c) - if c:isvisible() then + if awesome.startup or c:isvisible() then client.focus = c c:raise() - elseif not awesome.startup then + else c.urgent = true end end -- 2.11.4.GIT