allusive-dev / compfy

A Compositor for X11 based on Picom. No Longer Maintained in favor of Picom v12!
200 stars 24 forks source link

Workspace switching shows wallpaper #28

Closed Odeni closed 11 months ago

Odeni commented 11 months ago

When switching workspaces, wallpaper flashes briefly when fading/animations are enabled. Could the wallpaper be ignored or replaced with just #000? If wallpaper is not set, it looks fine.

Using i3wm.

allusive-dev commented 11 months ago

@Odeni Can you please attach a video this happening as I am not sure what you mean.

Odeni commented 11 months ago

Old problem. Video can be seen here: https://github.com/yshui/picom/issues/16#issuecomment-431603866

allusive-dev commented 11 months ago

Hm. This is kind of difficult because that is how it is meant to work. When you switch to a new workspace the current windows fade/animate out and the new windows fade/animate in, so whatever is behind them is briefly visible. The only way to fix that is to disable fading. Like you said though making it #000 would break how animations are supposed to come in when opened/become visible when switching between workspaces.

allusive-dev commented 11 months ago

@Odeni It looks like somebody solved the issue by using these configuration options.

fading = true;
fade-in-step = 1;
fade-out-step = 1;
fade-delta = 50;
Odeni commented 11 months ago

This basically disables fading. My solution so far was to not use a wallpaper.

allusive-dev commented 11 months ago

@Odeni I'm a bit confused then because, what you are describing to me is the purpose of fading, but you don't want to disable it? I don't think there is a way to "fix" this besides disabling fading. There is not a lot I can really do to picom to change what is happening at this stage unfortunately. I'm quite sorry about it.

allusive-dev commented 11 months ago

@Odeni You could try using this option.

no-fading-openclose = true;
Odeni commented 11 months ago

It should be fading from what is showing on one workspace to what is showing on second. If I can't see the wallpaper on either workspace, picom should not show it. It's probably impossible to fix or someone would have done it already.

allusive-dev commented 11 months ago

It's probably impossible to fix or someone would have done it already.

I think you might be right, I understand what you mean now about fading between windows instead of fading out then in but personally I would not know how to do that. (Also it would break animations since they would collide).

Odeni commented 11 months ago

Alright, thanks for looking into it.

allusive-dev commented 11 months ago

No problem. I am sorry I couldn't be more helpful.