Fix inverted border drag direction in splits layout

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/10200944-3143-4347-880c-f4d5b96749f5

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-31 16:28:19 +00:00 committed by GitHub
parent 53ec55a1da
commit c3a111fbd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -211,6 +211,8 @@ Detailed list of changes
- macOS: Add Copy and Paste menu items to the Edit menu in the global menu bar (:iss:`9780`)
- Fix dragging of splits layout borders sometimes moving in the wrong direction (:pull:`9447`)
0.46.2 [2026-03-21]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -498,9 +498,9 @@ class Pair:
return False
if self.two == gid:
return True
if not isinstance(self.two, Pair):
return False
return self.two.is_group_on_second(gid)
if isinstance(self.two, Pair):
return self.two.pair_for_window(gid) is not None
return False
def find_window_in_tree(self, window_id: int) -> 'list[tuple[Pair, bool]] | None':
# Returns list of (pair, is_in_one) from self down to the pair containing window_id.