Repository navigation
Match Windows snip gestures on Linux - #10
Merged
Merged
Conversation
F and A finish immediately, Enter confirms the selection or the monitor, and Esc or a right-click cancels the drag before the snip. On X11 the arrow keys move the real pointer.
The countdown sits at the bottom of the monitor under the pointer, does not take focus, and on X11 clicks pass through it. Tray snips wait for the menu to close, and the preview opens on the snipped monitor without taking focus.
# Conflicts: # .github/workflows/build.yml # PARITY.md # linux/App.cs # linux/OverlayWindow.cs # linux/ThumbnailWindow.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Linux snip gestures now follow the Windows overlay.
Fcaptures the monitor under the cursor immediately.Acaptures the whole frame immediately.PARITY.mdlists every Windows feature against this tree. X11 capture still importslibX11(that is #4). Window grab, the editor, pins, shortcuts, and recording already have open PRs and are not in this one.Why
On main,
FandAonly set a selection, Esc always cancelled the whole snip, the arrow keys moved an internal cursor, and the countdown sat in the middle of the screen where it could be captured and could block clicks.How it was tested
dotnet test tests/OpenSnip.Tests/OpenSnip.Tests.csproj -c Release— 17 passed. The same run withDISPLAYset to a display that cannot be opened also passed; the X11 tests return when the display cannot be opened.dotnet build src/OpenSnip.csproj -c Release -p:EnableWindowsTargeting=true— succeeded, 0 warnings.src/is unchanged.DISPLAY=:1, 1920×1200): Shift+Right moved the pointer 10 px. Esc during a drag left the overlay up and wrote no file; the later mouse-up did not finish the snip; a second Esc closed it. Right-click cancelled. Enter saved the dragged rectangle (300×200).FandAeach saved a 1920×1200 PNG. The preview landed at the bottom-right (1596, 988) and did not take focus. The countdown was 128×128 at (896, 1032), had an empty X input shape, was not under the pointer, did not take focus, and was gone before the overlay opened.