diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-07 09:22:39 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-07 09:22:39 +0400 |
| commit | 62c9d44b0421d35987520ba84e270e37fdf12592 (patch) | |
| tree | 4e5ac5c34ccc8899425b48d4858cda2bb66820a3 /src | |
| parent | e394a7ff2006985b27903bdf694573543f0f6268 (diff) | |
| download | niri-62c9d44b0421d35987520ba84e270e37fdf12592.tar.gz niri-62c9d44b0421d35987520ba84e270e37fdf12592.tar.bz2 niri-62c9d44b0421d35987520ba84e270e37fdf12592.zip | |
screenshot-ui: Fix last selection preservation
Another missed thing from the fractional scale refactor...
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/screenshot_ui.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/screenshot_ui.rs b/src/ui/screenshot_ui.rs index facb9692..6d073220 100644 --- a/src/ui/screenshot_ui.rs +++ b/src/ui/screenshot_ui.rs @@ -100,11 +100,10 @@ impl ScreenshotUi { } }; - let scale = selection.0.current_scale().integer_scale(); let selection = ( selection.0, selection.1.loc, - selection.1.loc + selection.1.size - Size::from((scale, scale)), + selection.1.loc + selection.1.size - Size::from((1, 1)), ); let output_data = screenshots |
