Skip to content

Commit

Permalink
Bugfix for snap window (talonhub#1685)
Browse files Browse the repository at this point in the history
The snap command is not respecting the new talon list. It was skipping
the actual snapping of the windows. This restores that behavior.

fixes talonhub#1684

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jaresty and pre-commit-ci[bot] authored Jan 15, 2025
1 parent 2100ebc commit cf5807d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/windows_and_tabs/window_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def snap_window_to_position(
position: Optional[RelativeScreenPos] = None
if position_name in _snap_positions:
position = _snap_positions[position_name]
actions.user.snap_window(position, window)
else:
# Previously this function took a spoken form, but we now have constant identifiers in `_snap_positions`.
# If the user passed a previous spoken form instead, see if we can convert it to the new identifier.
Expand Down

0 comments on commit cf5807d

Please sign in to comment.