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 <git@thequod.de>
This commit is contained in:
parent
f9a1093e45
commit
c855b1babb
|
@ -204,7 +204,7 @@ function rules.apply(c)
|
||||||
-- Do this at last so we do not erase things done by the focus
|
-- Do this at last so we do not erase things done by the focus
|
||||||
-- signal.
|
-- signal.
|
||||||
if props.focus and (type(props.focus) ~= "function" or props.focus(c)) then
|
if props.focus and (type(props.focus) ~= "function" or props.focus(c)) then
|
||||||
client.focus = c
|
client.emit_signal('request::activate', c)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,7 @@ HANDLE_GEOM(height)
|
||||||
ewmh_client_check_hints(c);
|
ewmh_client_check_hints(c);
|
||||||
|
|
||||||
/* Push client in stack */
|
/* Push client in stack */
|
||||||
client_raise(c);
|
stack_client_push(c);
|
||||||
|
|
||||||
/* Always stay in NORMAL_STATE. Even though iconified seems more
|
/* Always stay in NORMAL_STATE. Even though iconified seems more
|
||||||
* appropriate sometimes. The only possible loss is that clients not using
|
* appropriate sometimes. The only possible loss is that clients not using
|
||||||
|
|
Loading…
Reference in New Issue