Skip to content

Commit

Permalink
fix #148
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Nov 6, 2024
1 parent 59dfe1c commit 87fb5e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pyprland/plugins/scratchpads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,6 @@ async def _show_transition(self, scratch: Scratch, monitor: MonitorInfo, was_ali
) # not aspect preserving or it's newly spawned
if should_set_aspect:
await self._fix_size(scratch, monitor)
position_fixed = False
if should_set_aspect:
position_fixed = await self._fix_position(scratch, monitor)

clients = await self.hyprctl_json("clients")
await self._handle_multiwindow(scratch, clients)
Expand All @@ -664,6 +661,10 @@ async def _show_transition(self, scratch: Scratch, monitor: MonitorInfo, was_ali
await self.hyprctl(move_commands)
await self._update_infos(scratch, clients)

position_fixed = False
if should_set_aspect:
position_fixed = await self._fix_position(scratch, monitor)

if not position_fixed:
relative_animation = preserve_aspect and was_alive and not should_set_aspect
await self._animate_show(scratch, monitor, relative_animation)
Expand Down
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.2-1"
VERSION = "2.4.2-2"

0 comments on commit 87fb5e1

Please sign in to comment.