lingtjien/Grid-Tiling-Kwin

Adjusting the sizing logic after swapping position

Closed this issue · 2 comments

Say we have tiling windows A and B, positioned left and right respectively. If we place focus on the window B and increase its size, B size will be increased and A will be decreased. Now let's try to swap positions of A and B and try to place focus on the window A (which is now on the right) and try to increase its size - the sizing logic will be reversed, even though you gave an instruction to INCREASE the window A at the new position, its size will be DECREASED instead and vice versa.

I think you didn't focus A correctly after you swapped A and B

  1. Open 2 konsole windows
1 2
  1. increase size of 1 with shortcut and observe that size of 1 is increased
  2. swap to new position
2 1
  1. focus 1 (make sure 1 is focused by typing something and seeing that text is being input into konsole 1)
  2. increase size of 1 with shortcut and observe that size of 1 is increased

Hm... you're right.
The issue was in step 4: even though I kept moving my mouse pointer over 1, it was still not focused - I had to click on it, but I usually don't have to, since my mouse pointer is set to give focus on a hovering window. It seems that doesn't work right after swapping window positions.