Make client.movetotag emit request::activate on client

Closes https://github.com/awesomeWM/awesome/pull/439.
This commit is contained in:
Benjamin Petrenko 2015-09-09 23:15:43 +03:00 committed by Daniel Hahler
parent 872c321e81
commit 0a11cd0c4d
1 changed files with 3 additions and 0 deletions

View File

@ -500,6 +500,9 @@ function client.movetotag(target, c)
local sel = c or capi.client.focus local sel = c or capi.client.focus
local s = tag.getscreen(target) local s = tag.getscreen(target)
if sel and s then 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. -- Set client on the same screen as the tag.
sel.screen = s sel.screen = s
sel:tags({ target }) sel:tags({ target })