From c855b1babb0b2e8c171e16ea6f40da668d98a372 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 8 Mar 2014 03:35:35 +0100 Subject: [PATCH] Do not raise clients in client_manage Instead, use stack_client_push and emit the `request::activate` signal from awful.rules.apply, if the client gets focus. Signed-off-by: Daniel Hahler --- lib/awful/rules.lua.in | 2 +- objects/client.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/rules.lua.in b/lib/awful/rules.lua.in index 8891d4400..d8bdbdad7 100644 --- a/lib/awful/rules.lua.in +++ b/lib/awful/rules.lua.in @@ -204,7 +204,7 @@ function rules.apply(c) -- Do this at last so we do not erase things done by the focus -- signal. if props.focus and (type(props.focus) ~= "function" or props.focus(c)) then - client.focus = c + client.emit_signal('request::activate', c) end end diff --git a/objects/client.c b/objects/client.c index bb7fce731..b36e26bde 100644 --- a/objects/client.c +++ b/objects/client.c @@ -549,7 +549,7 @@ HANDLE_GEOM(height) ewmh_client_check_hints(c); /* Push client in stack */ - client_raise(c); + stack_client_push(c); /* Always stay in NORMAL_STATE. Even though iconified seems more * appropriate sometimes. The only possible loss is that clients not using