Hello,

I'm a very pleased awesome user (3.4.13-debian).

But I'm using two screens and there was always an annoying behaviour when
switching tags between two screens.

For example I'm working on screen 1 on tag 1. Screen 2 shows tag 2. Now, I'm
switching to tag 3 (Mod4+3) on screen 2. Tag 3 is showed and the first client
gets the focus. But, the mouse pointer keeps on screen 1.

And If I'm now on screen 2 (tag 3) and want to switch back to tag 1 on screen 1, I have to focus it with Mod4+Ctrl+j/k. That's okay, but I think it would be
nice to be able to switch the focus also with Mod4+1.

In the attachment you will find an patch to solve this problem.

Even if I'm using 3.4.13, the code in 3.5.1 is still the same, so I think the
problem occurs also there. Additionally I'm using shifty, but it's not a
problem related to that.

Best regards,
Rudi



451,457c451
<     local tags = tag.gettags(tag.getscreen(t))
<     -- First, untag everyone except the viewed tag.
<     for _, _tag in pairs(tags) do
<         if _tag ~= t then
<             _tag.selected = false
<         end
<     end
---
>     tag.viewnone(t.screen)
459,460d452
<     -- We need to do that in 2 operations so we avoid flickering and several 
tag
<     -- selected at the same time.
461a454,455
>     -- Move mouse pointer
>     capi.mouse.screen = t.screen

Reply via email to