Skip to content

Commit 87fb5e1

Browse files
committed
fix #148
1 parent 59dfe1c commit 87fb5e1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyprland/plugins/scratchpads/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,6 @@ async def _show_transition(self, scratch: Scratch, monitor: MonitorInfo, was_ali
641641
) # not aspect preserving or it's newly spawned
642642
if should_set_aspect:
643643
await self._fix_size(scratch, monitor)
644-
position_fixed = False
645-
if should_set_aspect:
646-
position_fixed = await self._fix_position(scratch, monitor)
647644

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

664+
position_fixed = False
665+
if should_set_aspect:
666+
position_fixed = await self._fix_position(scratch, monitor)
667+
667668
if not position_fixed:
668669
relative_animation = preserve_aspect and was_alive and not should_set_aspect
669670
await self._animate_show(scratch, monitor, relative_animation)

pyprland/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package version."""
22

3-
VERSION = "2.4.2-1"
3+
VERSION = "2.4.2-2"

0 commit comments

Comments
 (0)