Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.43k stars 3.4k forks source link

Cannot resize panes when focus follows mouse #7297

Open dnut opened 2 years ago

dnut commented 2 years ago

tabby 1.0.183 linux mutter (gnome) 42.5

To Reproduce:

  1. Enable focus follows mouse
  2. Restart the application to use the new settings
  3. Create a vertical split between two terminal panes
  4. Hover over the bar between panes
  5. When you see the resize mouse cursor appear, click and hold the mouse
  6. Drag the mouse left or right

Expected: The border moves with the mouse cursor to wherever you want in the window as long as the mouse remains held. When releasing the mouse, the panes are now split at that location

Actual: The border does not move at all. You can only move a few pixels before the border is released, and the border stays exactly where it started.

What appears to be happening is that the border is dropped as soon as the focus is on a terminal pane instead of the border, and the border's location is not updated until after the mouse cursor's location is updated. As long as you move the mouse very slowly one pixel at a time, the border location can be updated with its center directly below the mouse, thus keeping the mouse within the confines of the border region, so the focus stays on the border. But this is not a reasonable speed to move the mouse. It's insanely slow and actually difficult to get it right without slipping out of the region by accident. If you move the mouse at a normal speed, the border's location is not updated fast enough to prevent the mouse from leaving the border region, thus immediately dropping hold of the border.

D0ngs3c commented 1 year ago

+1