In "resize-pane -M", the border must track the mouse.

This is just a thought:
cmd_resize_pane_mouse_update() should search
two topmost layout_cell-s which have the border?

--
KOIE Hidetaka <[email protected]>

  Message-Id: <20170628073321.ojcm3zmy4tukjbhh@yelena>
  Date:       Wed, 28 Jun 2017 08:33:21 +0100
  From:       Nicholas Marriott <[email protected]>
  Subject:    Re: "bind-key -T root MouseDrag1Border resize-pane -M" d..

  | Hi
  | 
  | I see the problem, but your change is wrong. If you split %2 into two:
  | 
  |    +-----------------+
  |    |%0   |%3         |
  |    |-----|-----------|
  |    |%4   |%5         |
  |    |-----------------|
  |    |%1         |%2   |
  |    |           |-----| <-- drag this border
  |    |           |-----|
  |    +-----------------+
  | 
  | Then your change will break this case.
  | 
  | I'm not sure how to make this smart enough to always know which pane is
  | meant. Perhaps it will need to look at the direction the user is moving
  | as well?

Reply via email to