Redraw cursor if hidden during screenshot
Browse files at this commitd31a90edb0d475e35ef113c260bc1d346d70498dParent: 8eeb7dd1 changed file +6 -0
- src/niri.rs +6 -0
src/niri.rsmodified+6 -0
| @@ -1826,6 +1826,12 @@ impl State { | ||
| 1826 | 1826 | return; |
| 1827 | 1827 | } |
| 1828 | 1828 | |
| 1829 | + // Redraw the pointer if hidden through cursor{} options | |
| 1830 | + if self.niri.pointer_visibility == PointerVisibility::Hidden { | |
| 1831 | + self.niri.pointer_visibility = PointerVisibility::Visible; | |
| 1832 | + self.niri.queue_redraw_all(); | |
| 1833 | + } | |
| 1834 | + | |
| 1829 | 1835 | let default_output = self |
| 1830 | 1836 | .niri |
| 1831 | 1837 | .output_under_cursor() |