compton icon indicating copy to clipboard operation
compton copied to clipboard

Fading shows desktop

Open ghost opened this issue 9 years ago • 18 comments
trafficstars

Using i3, switching workspaces causes a nice fadein/out from compton, however, it shows the desktop background, which can get annoying. Is there a way to make compton use a solid color for a background when fading, or not show the background at all?

ghost avatar Feb 04 '16 22:02 ghost

I have the same setup and issue; it would be nice to know if there's a fix. I originally thought it was i3's fault, since I've been using compton with it for so long, but when I disabled compton, the background flash went away. I'll keep searching. :)

krompus avatar Feb 23 '16 14:02 krompus

I have the same issue using i3 as well.

Chilinot avatar Feb 23 '16 15:02 Chilinot

… confirmed…

ghost avatar Mar 01 '16 20:03 ghost

Well, when a window is being faded out, you see whatever is under it, and in the case of i3, it is your wallpaper (or more technically, you see the contents of the pixmap specified in the _XROOTPMAP_ID or _XSETROOT_ID property of the root window, or gray if none of the properties exists). I do not see what is wrong with the behavior. If you do not like the appearance, simply choose a wallpaper you like: If you like solid color, use a wallpaper with solid color. I do not see where the problem is. Did I understand your requirements incorrectly?

richardgv avatar Mar 17 '16 15:03 richardgv

This could be fixed with a suggestion/issue someone reported earlier as well: https://github.com/chjj/compton/issues/314

CamilleScholtz avatar Mar 17 '16 15:03 CamilleScholtz

Personally i would like to be able to disable the fading. The fading makes the workspace switching less rapid and slow.

Chilinot avatar Mar 17 '16 15:03 Chilinot

@onodera-punpun and @Chilinot:

Okay, I will look into #314 after I take care of the bugs, but I am afraid it would not be too soon.

Meanwhile, you could try --no-fading-openclose, which does disable fading during workspace switches for i3 -- but it disables fading when opening/closing windows, too.

richardgv avatar Mar 17 '16 15:03 richardgv

@richardgv thanks, that fixed it :) personally i can live without the open/close fading :)

Chilinot avatar Mar 17 '16 15:03 Chilinot

Hi guys, I had the same issue and I just came up with a better solution. The reason we can see the wallpaper when fading is that the previous screen is fading out too fast, or the latter screen fading in too slow. Then, at some point, the sum of two screens' opacity drops below 1 and we see the wallpaper. So what we should do is adjusting the fade-in-step and fade-out-step to prevent this from happending.

Try this: compton -D 5 -I 0.05 -O 0.02. It prevents the wallpaper from showing up while preserves the beautiful fading effect. Fine-tune these values to suit your preference but keep fade-in-step slightly larger than fade-out-step. Hope this helps!

Another finding. When I switch a workspace to fullscreen mode ($mod+f in i3 or f11 in chrome/chromium), switching to other workspace causes flicker. I'm not sure whether it's caused by compton or X.

JunnanZ avatar Jan 09 '17 09:01 JunnanZ

I still get to see my wallpaper for a fraction of second when switching workspace and with the --no-fading-openclose option (using i3 too).

Champitoad avatar Feb 09 '17 01:02 Champitoad

I am having this issue in xmonad, with or without --no-fading-openclose

BlackCapCoder avatar Feb 17 '17 22:02 BlackCapCoder

@BlackCapCoder Try @JunnanZ's suggestion but tweak the fade-in (-I) and fade-out (-O) values if it doesn't fix it for you. In my case I basically copy pasted his code but decreased the -O to 0.01 and its working now.

For your convenience, this is what I'm running now: compton -D 5 -I 0.03 -O 0.01 -f

Note: the -f flag is for turning on fade-in/fade-out, it wasn't mentioned in @JunnanZ suggestion.

rifazn avatar Feb 18 '17 10:02 rifazn

I agree that it would be useful with an option to "Fade via black" (or a customizable color) instead of via the desktop background. Fading via black gives the appearance that the windows morph/fade into the windows of the next workspace, rather than seeing the wallpaper flicker by for a split second.

They fading looks great with a black wallpaper, so I might just switch out my wallpaper (and put it as the lockscreen instead since I like the image).

Btw, I think #385 is the same issue as this one.

joelostblom avatar Mar 05 '17 21:03 joelostblom

If windows are full screen the background is not shown.

Also see this

Switching a workspace is done by unmapping all windows on the source workspace and mapping the windows of the target workspace. In other words, it's just making certain windows disappear and others appear. From a X point of view, this is no different from an application starting up and opening a window.

rudevdr avatar Feb 25 '18 16:02 rudevdr

@rudevdr this still happens for me even if both windows are fullscreen

jordiorlando avatar Mar 01 '18 22:03 jordiorlando

A solution to lessen this is to make your fade out step less than your fade in step. You may have to mess around with the values until you find the speed you prefer.

ghost avatar Jun 16 '18 21:06 ghost

This problem still bothering me. Any solution?

tjbrn avatar May 19 '20 18:05 tjbrn

I think a solution would be to change the way i3 handles workspace changes, if possible. As @rudevdr mentioned:

Switching a workspace is done by unmapping all windows on the source workspace and mapping the windows of the target workspace. In other words, it's just making certain windows disappear and others appear. From a X point of view, this is no different from an application starting up and opening a window.

If i3 were to first render the new windows on top of the old ones, and then close the old ones, then the desktop would not be visible during the transition.

rigopoui avatar Jan 03 '21 11:01 rigopoui