From 0a11cd0c4dbda0c1bf590fb9d6083545e9081910 Mon Sep 17 00:00:00 2001 From: Benjamin Petrenko Date: Wed, 9 Sep 2015 23:15:43 +0300 Subject: [PATCH] Make client.movetotag emit request::activate on client Closes https://github.com/awesomeWM/awesome/pull/439. --- lib/awful/client.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 1c4ab1348..517cd3073 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -500,6 +500,9 @@ function client.movetotag(target, c) local sel = c or capi.client.focus local s = tag.getscreen(target) if sel and s then + if sel == capi.client.focus then + sel:emit_signal("request::activate", "client.movetotag", {raise=true}) + end -- Set client on the same screen as the tag. sel.screen = s sel:tags({ target })