Skip to content

Commit

Permalink
Rescale cursor on output scale change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Rabinoff authored and jwijenbergh committed Dec 24, 2023
1 parent cde2349 commit 41e2600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libqtile/backend/wayland/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,9 @@ def _output_manager_reconfigure(self, config: OutputConfigurationV1, apply: bool
wlr_output.set_scale(state.scale)
# Ensure we have cursors loaded for the new scale factor.
self.cursor_manager.load(state.scale)
# Rescale the cursor if necessary
if not self.seat.pointer_state.focused_surface:
self.cursor_manager.set_cursor_image("left_ptr", self.cursor)
else:
if wlr_output.enabled:
wlr_output.enable(enable=False)
Expand Down

0 comments on commit 41e2600

Please sign in to comment.