Commit Graph

613 Commits

Author SHA1 Message Date
Yuriy Puchkov
8f5f656347 fix - MacOS - Pin on retina
(cherry picked from commit 6e6025740d3c512c4f30d48681b42f997104d367)
2021-02-17 18:46:12 +02:00
Yuriy Puchkov
05633bf7f7 fix - If retina display is at the right side (display arrangement) it joins ToolButtons on capture widget into one on retina if you have more than 3 displays in the row
(cherry picked from commit e9ae7501a7eed552bd35b5755792864d55454e2e)
2021-02-17 18:46:12 +02:00
Yuriy Puchkov
24f02a6dc2 fix - Ubuntu - Broken Flameshot icon in the taskbar with pinned image
(cherry picked from commit 18722f5b29dde05f22d0a88b7e2251f81a06ca00)
2021-02-17 18:46:12 +02:00
Yuriy Puchkov
4cfa25b966 fix - MacOS - Grabbed color differs from the clicked area
(cherry picked from commit 850d7f1df3c8a3fa9aa3db7beaba242abe78a855)
2021-02-17 18:46:12 +02:00
Jeremy Borgman
911652e5eb Fixed issue with undo and rounded rectangles 2021-02-17 07:27:38 -06:00
Yuriy Puchkov
4ab66411b1 Code refactoring - clang-format 2021-02-16 12:34:45 -06:00
Yuriy Puchkov
5c3e63d30d fix - MacOS - startup (login items) feature
(cherry picked from commit 97ac0b1da4a3340da8019c7736b99fe5cd9274e5)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
7b4c409a86 fix - MacOS - Strange tool buttons position behaviour on capture screen
(cherry picked from commit 0dee55884b873d6ded139c39d665bb229481c7e2)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
2fb3f90afc fix - no flameshot icon in the taskbar for 'Latest uploads' and 'Open launcher' widgets
(cherry picked from commit c662e3e765df31798dd62f8b9a26cddf1a0aa8af)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
c93c91e09f fix - reset configuration doesn't reset 'Save path'
(cherry picked from commit aa26cda409b745ed2b585ad393591aa03d4813dd)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
ea5cf3e042 fix - Line starts from the different point after changing line color
(cherry picked from commit 208f930d4e9425db6c58abd8ffdb2cc0fb6c685a)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
f56c69540e fix - MacOS - It's impossible to make a screenshot of all screens (change message according to Mac philosophy)
(cherry picked from commit 9decaf287b11c0e523bc702165d348f7f26c5f32)
2021-02-16 12:34:45 -06:00
Yuriy Puchkov
7220ba48e2 fix - MacOS - App keeps making screenshots after saving screenshot that was made via launcher
(cherry picked from commit f2f96afba550d260614bf647e37dfd2fee23e6ea)
2021-02-16 12:34:45 -06:00
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