Skip to content

Commit 93d2546

Browse files
committed
Fix recording applications when on scaled monitor
1 parent 933bed0 commit 93d2546

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mousetracks2/components/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _record_move(self, data: MovementMaps, position: tuple[int, int],
198198
# Convert pixels from logical coordinates to physical
199199
old_position = position
200200
new_position = data.position
201-
if force_monitor is None:
201+
if force_monitor is None and not self.current_application.rects:
202202
old_position = self.monitor_data.coordinate(position)
203203
if data.position is None:
204204
new_position = old_position

mousetracks2/gui/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,7 @@ def draw_pixmap_line(self, old_position: tuple[int, int] | None, new_position: t
22952295
self._pixel_redraw_queue.append((old_position, new_position, force_monitor))
22962296

22972297
# Convert pixels from logical coordinates to physical
2298-
if force_monitor is None:
2298+
if force_monitor is None and not self.current_profile.rects:
22992299
if old_position is not None:
23002300
old_position = self.monitor_data.coordinate(old_position)
23012301
if new_position is not None:

0 commit comments

Comments
 (0)