toggle focus

This commit is contained in:
anakha 2021-07-11 16:38:55 -04:00
parent 0515fb8082
commit 9ac8884703
1 changed files with 5 additions and 1 deletions

View File

@ -612,7 +612,11 @@ local function expand_horizontal(direction)
resize_region_to_index(c.region, true, true)
gears.timer.weak_start_new(0.1,function ()
client.focus = mouse.current_client
client_under_mouse = mouse.current_client
if client_under_mouse then
client.focus = mouse.current_client
end
end) --|when toggling leave the focus
--|to the client under the pointer
end