Commit Graph

800 Commits

Author SHA1 Message Date
Jeremy Borgman
67952f06ab Moved SSL check to be windows specific 2021-02-16 10:10:21 -06:00
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
Jeremy Borgman
381985afbb Handle exception when locales are not properly configured 2021-02-15 08:07:31 -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
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
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
Jeremy Borgman
2c734a5479 fixed Mac cmake issue 2021-01-15 19:27:54 -06:00
Jeremy Borgman
9581a698af resolved merge conflicts 2021-01-15 19:02:16 -06:00
Jeremy Borgman
92b9379d69 Made changes after review of merge 2021-01-15 17:54:56 -06:00
brimston3
7f55d0c672 Simplify canonical path generation slightly 2021-01-15 12:49:33 -06:00
brimston3
e07829ec55 Emit dbus captureSaved signal when saving files
New captureSaved signal contains the request ID and canonical path of the saved
file. This allows a dbus listener interested in postprocessing files access to
the path most recently written.
2021-01-15 12:49:33 -06:00
Jeremy Borgman
73fe772b70 resolving merge conflicts 2021-01-08 10:19:53 -06:00
Jeremy Borgman
c84b6df7d3 fixing clag format check 2021-01-05 17:01:12 -06:00
Jeremy Borgman
76ad9e5a6f first pass at adding logging framework 2021-01-05 17:01:12 -06:00
freddii
bc61bf1027 fixed typing mistakes 2020-12-28 19:12:40 -06:00
Yuriy Puchkov
fa096560b6 MacOS - On 2 and more displays notification disappears too quickly 2020-12-23 11:57:45 +02:00
Yuriy Puchkov
6576f0ae47 fix - ignore available updates by "less" instead of "not equal" 2020-12-18 16:46:26 +02:00
Yuriy Puchkov
2114ad3c32 fix - 'update version notification' widget position and event handler for Linux 2020-12-18 15:33:00 +02:00
Yuriy Puchkov
aee8a55292 fix - update version notification logic 2020-12-18 14:55:45 +02:00
Yuriy Puchkov
d050e474d7 Add retry option on upload to s3 fail 2020-12-17 21:28:13 +02:00
Yuriy Puchkov
6300672828 fix - MacOS - no notification in tray on image upload, save to clipboard and other notifications 2020-12-17 15:02:22 +02:00
Yuriy Puchkov
f735a9106d MacOS - Global shortcuts (add QHotkey license and remove unused files) 2020-12-17 13:11:29 +02:00