flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.65k stars 1.58k forks source link

flameshot gui wont handle full screen #108

Open alexanderadam opened 6 years ago

alexanderadam commented 6 years ago

Calling flameshot gui results in showing just a quarter of the top left screen. Not the full screen.

lupoDharkael commented 6 years ago

Please, provide system version and desktop environment.

alexanderadam commented 6 years ago

Ubuntu 17.10 with KDE on Dell XPS 15 9550.

~ ❯❯❯ flameshot -v
Flameshot
Compiled with QT 5.9.1

Installed version: 0.5.0~artful via this ppa

It's a HiDPI system in case that's relevant.

sharipov-ru commented 6 years ago

@alexanderadam I had the same issue on Dell XPS 9560 (4K, HiDPI enabled at 1.75x ratio, Ubuntu 16.04 with Unity desktop) when I used a deb package from this site.

Issue solved after manually compiling flameshot from git master

zhuleilei commented 5 years ago

Linux Mint 19 (Ubuntu 18.04) on a laptop with a dell display. the resolution of the laptop display is 1366x768 ,the resolution ot the dell display is 1920x1080。I set a shortcut to run the command "flameshot gui". case 1: set the laptop's display as main display, runing "flameshot gui" in terminal results will handle full screen。but pressing shortcut to run the same command results can only handle the top half of the two display. case 2: set the dell's display as main display ,whether runing command in terminal or pressing shortcut will handle the full screen.

~$ flameshot -v
Flameshot v0.6.0
Compiled with Qt 5.9.5
ai commented 4 years ago

The same problem on the latest Fedora 32 with scale factor 2

➜ flameshot -v
Flameshot v0.6.0
Compiled with Qt 5.13.2
worace commented 3 years ago

Getting this as well on Ubuntu 20.04. Also using a 4k display with hiDPI scaling, which I have a feeling may be part of the issue?

flameshot -v
Flameshot 0.6.0+git20191001-2(Debian)
Compiled with Qt 5.12.5
mmahmoudian commented 3 years ago

@worace I'm not sure if the issue is resolved in the latest version of Flameshot, but one thing is certain, your flameshot version is very old. It would be nice if you can update to the latest version (at the moment of writing this it is v0.10.1) and see if you still have that issue. Additionally, would be useful to know your monitor arrangements and if you are on Wayland or Xorg as we are trying to improve our Wayland support.

If you don't know how to get that information, please visit: https://flameshot.org/guide/issue-reporting/#quick-collection-of-the-system-information

and if you don't know how to upgrade to latest version (Your Ubuntu version only supports the old version), you can visit this link to explore the options: https://flameshot.org/guide/installation/installation-linux/

worace commented 3 years ago

Got it. Thanks for the response. I am pretty sure I just installed it out of apt which I assume is how I got the old version. Will update and report back.

worace commented 3 years ago

OK I updated to the latest:

flameshot --version
Flameshot v0.10.1 (e4f067b)
Compiled with Qt 5.12.8

I think the issue has changed a bit (not getting some of the whole screen flicker-to-black) behavior I was seeing before, but I still have trouble selecting across the whole screen with flameshot. It brings up the initial "greyed out" opacity view, but then the area which you can actually select is constrained to part of the screen.

I initially guessed this had something to do with using a hidpi 4k screen, but on testing further I also wondered if it could be related to:

I will see if I can get a screenshot or video recording of what I am seeing, although it is a little tricky since the excellent tool I would normally use to screenshot (flameshot) is the thing that is having trouble in this case.

mmahmoudian commented 3 years ago

@worace it still would be useful to know your monitor arrangements and if you are on Wayland or Xorg as we are trying to improve our Wayland support.

worace commented 3 years ago
echo $XDG_SESSION_TYPE 
x11

dpkg -l |grep xserver-xorg-core
ii  xserver-xorg-core                          2:1.20.11-1ubuntu1~20.04.2            amd64        Xorg X server - core server

Here's the display setup (2 monitors side by side with 1 in portrait):

Screenshot from 2021-09-02 08-57-19 Screenshot from 2021-09-02 08-57-30

worace commented 3 years ago

Ha ok I don't know if this continues to be helpful or not, but I tried to make a screen recording using gnome's built-in screen recorder (Ctrl-Alt-Shift-R) and miraculously the process of recording the screen seems to somehow make it work:

https://www.dropbox.com/s/3o0gyk3dueyveny/Screencast%20from%2009-02-2021%2009%3A03%3A36%20AM.webm?dl=0

So unable to think of a better option I also recorded a video with my phone showing the flickering behavior I am seeing normally:

https://www.dropbox.com/s/ffh3bd7u5tdekgi/Video%20Sep%2002%2C%209%2005%2046%20AM.mov?dl=0

mmahmoudian commented 3 years ago

@worace would you please try to turn off scaling on your monitor (set it to 100%) and see if the flickering issue is resolved? There was one frame in the video you took with your phone that the button of the left side-bar was in the right-half of the monitor and that prompted me that this might be some sort of scaling issue.

worace commented 3 years ago

@mmahmoudian sorry it took me a bit to finally test this...I had not been working at the machine that is having the issue for a few days.

That was a good hunch, because as you suspected it does work normally at 100%. And on another hunch, I also tested at 200%, which also works ok. So it seems that it's something about the fractional scaling in particular that is not playing nice with it. I recall running into subtle issues with fractional scaling in the past so perhaps this is not surprising.

alexamy commented 2 years ago

There is so many issues for fractional scale bugs, so I leave my report here. I had two identical monitors with fractional scaling set to 175% on both. On flameshot build from current master I had right screen moved to the center.

Normal state: 20220113_111919

With flameshot gui running: 20220113_111930

My configuration:

❯ flameshot -v
Flameshot v11.0.0 (c13270b)
Compiled with Qt 5.15.2

❯ hostnamectl
Operating System: Arch Linux
Kernel: Linux 5.16.0-arch1-1
Architecture: x86-64

❯ loginctl show-session 2 -p Type
Type=x11

❯ kf5-config --version
Qt: 5.15.2
KDE Frameworks: 5.90.0
kf5-config: 1.0

❯ plasmashell --version
plasmashell 5.23.5
hideki2k02 commented 1 year ago

There is so many issues for fractional scale bugs, so I leave my report here. I had two identical monitors with fractional scaling set to 175% on both.

Using this command solved the issue for me: env QT_AUTO_SCREEN_SCALE_FACTOR=1 flameshot gui (Credits to Kaspary) My configuration:

❯ flameshot -v
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5

❯ hostnamectl
Operating System: EndeavourOS                     
Kernel: Linux 6.1.23-1-lts
Architecture: x86-64

❯ loginctl show-session 2 -p Type
Type=x11

❯ kf5-config --version
Qt: 5.15.8
KDE Frameworks: 5.104.0
kf5-config: 1.0

❯ plasmashell --version
plasmashell 5.27.4