naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.16k stars 79 forks source link

screen blurs when taking shot #172

Closed TheContortion1st closed 2 years ago

TheContortion1st commented 5 years ago

Hi,

when I take a selective screenshot (-s) the screen blurs and so the screenshot is blurred as well. 1553596066

When I take a normal screenshot (w/o any option) it is crystal clear and with correct resolution. Any idea, what could cause this? blub

I'm using a Laptop with shut lid (1920x1080) working at a 27" monitor (2560x1440), configured via arand/xrandr in i3, if that's of any relevance.

exec_always --no-startup-id xrandr --output eDP-1 --off --output DP-1-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-3 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-1-1 --off --output DP-1-3 --off --output DP-2 --off --output DP-1 --off

TheContortion1st commented 5 years ago

I found a solution (workaround?). With the -o option, to not use hardware acceleration, maim does not blur the screen and the shots are crystal clear. It's quite strange though, that the full screen default maim screenshot is normal as well and only the selective option blurs it.

tdehaeze commented 5 years ago

Same problem here with i3

Haagen-Dazs commented 5 years ago

Disabling blur in compton is another workaround.

asuperpower commented 5 years ago

Yeah, I'm having this issue as well (i3 + compton). Only happened when I turned blur on with compton and maim -o fixes the issue.

jpmvferreira commented 5 years ago

Having the same issue running i3 + compton on Manjaro, and i can confirm that using the -o flag on my system does in fact remove the blurring.

If i had to guess, i think i3 is somehow acting as if main -s were a window and as such blurs the background.

ok4pi commented 5 years ago

This happens because of the compositor's blur effect. If you're using compton, you can add an exclusion for slop in your config without disabling hardware acceleration:

blur-background-exclude = [
    "class_g = 'slop'"
];
krompus commented 4 years ago

Similar/related issue, not sure if I should submit a new one. I just switched to picom-tryone, using a lightly modified default/sample config until I dive further into it. Whenever I go into selection mode -s, all of my displays dim a considerable amount, which is captured in the screenshot.

I've just added "10:class_g = 'slop'", within opacity-rule = [ as a workaround, but this still dims the images slightly. I can set it to 0 opacity, but then the selection box is invisible. I'd love to know how to make slop/maim fully transparent again with the selection box still visible.

omentic commented 3 years ago

Tangentally, if anyone knows how to make picom's blur effect only happen outside of the selection box, let me know.

jeanlucthumm commented 3 years ago

I was able to solve the dimming issue. Turns out it's not related to opacity, it's related to shadows, so add an exclusion to shadows for slop:

shadow-exclude = [
  "class_g *?= 'slop'"
];
polm commented 3 years ago

@jeanlucthumm Thank you, that fixed dimming with picom for me!

foxpy commented 3 years ago

should this issue be closed now?

frak0d commented 3 years ago

i have same issue with xfce4-screenshooter, tried adding it to blur exclusions but still blurring the selective screenshot overlay. Anyone knows the proper exclusion name for xfce4-screenshooter ?

foxpy commented 3 years ago

i have same issue with xfce4-screenshooter, tried adding it to blur exclusions but still blurring the selective screenshot overlay. Anyone knows the proper exclusion name for xfce4-screenshooter ?

I have no idea about the "select region" widget itself, but maybe you could try something from main screenshooter window information:

        {
            "border": "none",
            "current_border_width": 2,
            "floating": "user_off",
            "geometry": {
               "height": 318,
               "width": 545,
               "x": 410,
               "y": 225
            },
            "marks": [],
            "name": "Screenshot",
            "percent": 0.333333333333333,
            "swallows": [
               {
               "class": "^Xfce4\\-screenshooter$",
               "instance": "^xfce4\\-screenshooter$",
               "title": "^Screenshot$"
               }
            ],
            "type": "con"
        }
sirjager commented 2 years ago

blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'", "class_g ?= 'xfce4-screenshooter'", "_GTK_FRAME_EXTENTS@:c" ];

"class_g ?= 'xfce4-screenshooter'", # adding this line fixed issue (picom | manjaro)

foxpy commented 2 years ago

I am closing this issue since all workarounds^Wsolutions have been researched. Feel free to open it again if you still have any problems.