focus: Correctly handle screen indices.

Porting bug from... 10 years ago.
This commit is contained in:
Emmanuel Lepage Vallee 2021-12-08 10:09:32 -08:00
parent 3ab0f7a566
commit 72c733b537
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ local function bydirection(dir, c, swap,max)
end end
target = grect.get_in_direction(dir, screen_geom, c:geometry()) target = grect.get_in_direction(dir, screen_geom, c:geometry())
if target and target ~= c.screen then if target and target ~= c.screen then
local t = target.selected_tag local t = capi.screen[target].selected_tag
c.screen = target c.screen = target
c:tags({t}) c:tags({t})
c:raise() c:raise()