Commit Graph

1161 Commits

Author SHA1 Message Date
Jeremy Borgman
be730cf29c Fixed bug related to save path 2021-02-15 20:17:42 -06:00
Jeremy Borgman
40bad756ad Added BypassWindowManagerHint back since it broke multimonitor support 2021-02-15 19:56:38 -06:00
Gustavo Costa
b5ca48dde0 Update pt_BR translation 2021-02-15 08:08:16 -06:00
Heimen Stoffels
99825c4fbf Updated Dutch translations 2021-02-15 08:07:55 -06:00
Jeremy Borgman
381985afbb Handle exception when locales are not properly configured 2021-02-15 08:07:31 -06:00
Ahmed Zetao Yang
503065761e chore(CI): win packages version matches the git tag 2021-02-15 08:05:29 -06:00
Jeremy Borgman
99a778e31e Updated Releasing documents per review 2021-02-14 13:08:44 -06:00
Jeremy Borgman
2ca780dfe3 Staging Release Candidate for 0.9 2021-02-14 13:08:44 -06:00
Jeremy Borgman
4e03f6150c Added release notes 2021-02-14 13:08:44 -06:00
Dan Dascalescu
bcb4877d45 Fix English and some weird formatting 2021-02-14 12:47:49 -06:00
Boyuan Yang
9d09aeb68e translations: Update strings in Internationalization_ko.ts
Running 'lupdate ../.. -ts ./Internationalization_ko.ts'.
2021-02-13 20:14:59 -06:00
Boyuan Yang
4703516698 ko_KR translation: Fix locale string
The Korean translation was using `kr_KR` locale string, which
is a typo and will not be recognized by Qt.

This commit replaces `kr_KR` with `ko_KR`.
2021-02-13 20:14:59 -06:00
Boyuan Yang
ef68944d18 Update zh_CN translation for 0.9 release 2021-02-13 20:14:47 -06:00
Boyuan Yang
d279430e17 Refresh translation files 2021-02-13 20:14:47 -06:00
Ahmed Zetao Yang
4f01c863a9 fix: add executable permission for ld-linux-x86-64.so 2021-02-13 06:58:14 -06:00
Jeremy Fleischman
5a9ca6bd11 Exclude the external directory with a .clang-format file.
(I copied this trick from https://stackoverflow.com/a/57272592/1739415)

The GitHub clang-format workflow was already ignoring the `external`
directory because of the setting in the `clang-format.yml` file, but
that doesn't help other people running `clang-format` by hand (which the
CONTRIBUTING.md file instructs developers to do). Without this change,
I'd see a bunch of changes appear in the `external/spdlog` every time I
ran clang-format by hand.

I figure it's better to configure this via files that clang knows about
so both the GitHub workflow *and* developers have a closer to identical
experience.
2021-02-11 19:22:54 -06:00
Jeremy Fleischman
f482596c03 Add back missing call to resize
The call to `resize` is pretty important... without it, nothing shows up
on the screen when I run flameshot (presumably because it's 0 pixels by
0 pixels large). This was accidentally removed when resolving merge
  conflicts in 77c509e798.

While I was in here, I also opted to delete some comments. I personally
am never a fan of commenting out code: if we need something, that's what
Git is for! And, just in case GitHub disappears, I thought it would be
nice to record my research in a Git commit about why I think removing
`Qt::BypassWindowManagerHint` is ok. Comments copied from
https://github.com/flameshot-org/flameshot/pull/731):

> I played around with it [removing `Qt::BypassWindowManagerHint`] a bit
> and it has some really nice properties for me as a Xmonad X11 user:
>
>   - It resolves https://github.com/flameshot-org/flameshot/issues/784
>   - It also makes it possible for me to clearly see when flameshot has
>     focus, and give it focus, which I'd argue is a workaround/fix for
> https://github.com/flameshot-org/flameshot/issues/1072, and also has
> some nice properties as @filipkilibarda mentioned: "Allows the user to
> switch workspaces while in the screenshot GUI..."
>
> I did some git spelunking and here's the history of the current code:
>
> - c4d9210c35 is the first commit where
>   something like this showed up, but it used
> `Qt::X11BypassWindowManagerHint`, which is just [an alias for
> `Qt::BypassWindowManagerHint`](b75d60abd2/src/corelib/global/qnamespace.h (L247))
> - 0f30529c77 removed it (yay!)
> - 11b0e2db4b added in
>   `Qt::BypassWindowManagerHint` with somewhat cryptic message: "Capture
> window showing when mouse events are holded" message. I'm not sure what
> that means.
> - Later, this commit a9b0c21304 added a
>   `#ifdef Q_OS_WIN`  branch that made it so this
> `Qt::BypassWindowManagerHint` only happens on Linux, not Windows.
>
> So, since flameshot doesn't currently target OSX, I think this change
> only affects Linux. @borgmanJeremy if I did some investigation into how
> this behaves with other window managers (and maybe wayland?) would you
> be open to merging it up?
> https://github.com/flameshot-org/flameshot/pull/731#issuecomment-719767364
> for more information.

Later, I investigated how things behave on Linux with a non-tiling
window manager:

> I just installed xfce and tried this out, and as far as I can tell,
> things work great! During a screenshot, I can alt-tab to other windows
> and they end up on top of the ongoing screenshot, but I can click back
> on the screenshot to continue editing the screenshot (strangely, I
> cannot alt-tab back to the window). Keyboard shortcuts work as expected,
> and this feels like an improvement in every way, IMO.
2021-02-11 15:20:07 -06:00
Jeremy Borgman
f2f7d8739e Fixed formatting from PR 2021-02-11 09:48:23 -06:00
Filip Kilibarda
77c509e798 Disable Qt::BypassWindowManagerHint, workaround #583 #517 2021-02-11 09:48:23 -06:00
Jeremy Borgman
ebc94b1131 Fixed rounded rectangle bug 2021-02-11 09:02:49 -06:00
Boyuan Yang
f24bae0a18 CMakeLists.txt: Add option to use external spdlog library (#1290) 2021-02-08 10:34:26 -06:00
Boyuan Yang
a03c60107c Fix help string printing (#1289) 2021-02-08 09:36:49 -06:00
David Mitchell
c63b161025 Symmetric new selection (#1122)
* Move calls to update outside of each input case

* Remove redundant checks when moving selection

* Handle selection clipping the same for each mode

* Fix typo in SelectionWidget enum

* Obligatory "I forgot to clang-format" commit
2021-02-06 20:05:40 -06:00
David Mitchell
aee943af5d Implement selectAll and keyboard shortcut (#1106) 2021-02-06 20:01:45 -06:00
Jeremy Borgman
013c0f1169 fixed issue with mime data on clipboard for jpeg 2021-02-06 19:50:19 -06:00
Ahmed Zetao Yang
27746b45c4 chore(CI): migrate to a new docker repo & make some adjustments
* migrate to a new docker repo
* remove Fedora 31
* add Fedora 33
* upgrade Qt version to 5.15.2 for Windows
2021-02-06 15:14:58 -06:00
Ahmed Zetao Yang
d6a7ca6e6d chore: update wetransfer script from upstream 2021-02-06 15:14:58 -06:00
Ahmed Zetao Yang
186da9e08f docs: add MacOS CI build badge & update links 2021-02-06 15:13:42 -06:00
Jeremy Borgman
ddd4eb5b0c added wayland XCB hack for clipboard 2021-02-05 19:43:58 -06:00
Jeremy Borgman
99493cb8d9 Fixed formatting from old PR before CI 2021-02-05 17:22:17 -06:00
Eric Blanquer
1bc2bfe2a4 draw rounded selection using thickness radius instead of drawing simple selection 2021-02-05 13:21:02 -06:00
Eric Blanquer
b1edf99be1 draw rectange if thickness == 0 2021-02-05 13:21:02 -06:00
Eric Blanquer
489769949a draw rounded rectangle using thickness radius instead of drawing simple rectangle 2021-02-05 13:21:02 -06:00
Jeremy Borgman
42f481222a Fixed imgur upload history 2021-02-04 19:45:16 -06:00
nullobsi
ddf69010d8 code formatting 2021-02-02 19:22:05 -06:00
nullobsi
799c4c9908 use device pixel ratio on screenshot to properly draw the image 2021-02-02 19:22:05 -06:00
nullobsi
b4ba730732 disconnect object when done 2021-02-02 19:22:05 -06:00
nullobsi
4c23d2e45d properly exit event loop 2021-02-02 19:22:05 -06:00
nullobsi
7a18dc096a preliminary support for sway/wlroots compositors 2021-02-02 19:22:05 -06:00
Jeremy Borgman
2ee76addbd Minor tweaks after code review 2021-02-01 19:57:43 -06:00
Sonu Lohani
a944860d12 Add config for jpg/png when copy 2021-02-01 19:57:43 -06:00
Sonu Lohani
b121c6c72b Fix clang format 2021-02-01 19:57:43 -06:00
Sonu Lohani
8f058f98f3 JPG for clipboard 2021-02-01 19:57:43 -06:00
Sonu Lohani
c477c3dac6 Fix value update when slider moved through mouse scroll 2021-02-01 19:14:59 -06:00
Mantas-2155X
5b665eb97a * Show update notification widget on current active screen, remove some OS dependant checks 2021-01-28 19:30:41 -06:00
Mantas-2155X
23746a07d9 * Check QT version only on Linux 2021-01-28 19:30:41 -06:00
Mantas-2155X
36c92e542f * Fix clang formatting 2021-01-28 19:30:41 -06:00
Mantas-2155X
a2a84ff764 * Fix build on Ubuntu 18.04 2021-01-28 19:30:41 -06:00
Mantas-2155X
7daca5ff90 * Show the Help Text, Tool Settings on the current active monitor 2021-01-28 19:30:41 -06:00
Jeremy Borgman
265e42c7b0 fixed issue with circle count undo redo 2021-01-22 19:11:00 -06:00