Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow disabling auto resizing after first capture #551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pkoerner81929 opened this issue Jan 25, 2021 · 5 comments
Closed

Allow disabling auto resizing after first capture #551

pkoerner81929 opened this issue Jan 25, 2021 · 5 comments
Assignees

Comments

@pkoerner81929
Copy link

The capture window is always resized to (more than) 100% view after each capturing (manually or Shift-L). I would very much prefer to have it a fixed size, so it stays out of the way, independent of the size of the captured window. A settings option like "Do not resize Main Window after capturing" would describe, what I am looking for.

Screenshot 1: small window
Screenshot 2: After Shift-L, window resized to large.

grafik
grafik

@DamirPorobic
Copy link
Member

Ok, you would basically like a config option to disable the "Resize to capture", should be doable.

What would you do for the first capture? What size would you use for the initial size?

@pkoerner81929
Copy link
Author

Actual, I prefer to just leave it as I set it in the beginning (e.g. very small, but not hidden). No resizing at all if disabled. I often use the Shift-L feature on some presentation window somewhere else. If this is 1920x1080 image, a "resize to capture" would bring ksnip into the foreground as way to large.

@fnkabit
Copy link
Contributor

fnkabit commented Feb 8, 2021

@DamirPorobic
Should we place a default window size and an option to disable automatically resizing after capture ?

Once the first capture is made we can switch to this 'default size' and when subsequent captures are made, they will not change the window size.
This means that if, after the first capture, the user resizes the window, the next captures will not resize to the default size; the default size only applies to the first capture.

@DamirPorobic
Copy link
Member

DamirPorobic commented Feb 8, 2021

@fnkabit yeah, I had something like that in mind.

Check if you can extract the resize logic in a separate class. You can pass the an interface that it implemented by MainWindow into that class that allow you to resize. Don't forget tests for that class.

@DamirPorobic DamirPorobic changed the title Prevent Capture window from resizing after capturing Allow disabling auto resizing after first capture Feb 18, 2021
@DamirPorobic
Copy link
Member

@pkoerner81929 can you have a look at the functionality that @fnkabit has implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants