window_manager icon indicating copy to clipboard operation
window_manager copied to clipboard

BackgroundColor transparent doen't work on (Arch) Linux

Open 0Franky opened this issue 2 years ago • 11 comments

Hi leanflutter, I'm using this package to handle my desktop feature. I'm trying to build a rounded window. So i used a ClipRRect to wrap the Scaffold and windowManager.setBackgroundColor(Colors.transparent) to build the background window transparent. On widows everything work correctly, but on arch linux the background is black.

PS I use also windowManager.setAsFrameless().

I hope this can be fixed.

0Franky avatar Jul 12 '22 02:07 0Franky

I just tried this on Fedora, it works but I had to set my scaffold property backgroundColor: Colors.transparent - might be the issue? :)

Merrit avatar Jul 19 '22 21:07 Merrit

Hi @Merrit, thank you for your reply.

I'll try it today. But as I said I wrapped the scaffold to ClipRRect so I think the color of the scaffold (and the entire scaffold) is cut out. And on windows I achieve the correct result. Anyway I'll test it today, a further test can only do well!

Thanks again

0Franky avatar Jul 20 '22 09:07 0Franky

I've reproduced the same issue while trying to create sub-windows that have transparency; transparency works fine in the main window.

Here is a minimal reproducible example

@0Franky Are you having issues in a similar situation, or do you have this issue even in the standard counter app?

image

Merrit avatar Aug 29 '22 15:08 Merrit

Good morning everyone,

Unfortunately I had to temporarily suspend the project, so I'm sorry for the late reply @Merrit

In my case I'm using just a single window.

I set the bg as transparent and backgroundColor (in the theme) as red and the window bg was red. Then I tried to set bg and backgroundColor as transparent and the window bg fell back to the black.

My widget tree is the follow:

MaterialApp > ClipRRect > Scaffold > ......

ClipRRect should clip the scaffold and show the window bg color (transparent)

0Franky avatar Sep 12 '22 09:09 0Franky

I just downloaded and started your template project and this is the result

immagine

0Franky avatar Sep 12 '22 09:09 0Franky

Is your window manager running with compositing enabled? I believe compositing support is required for transparency to work..

Merrit avatar Sep 12 '22 14:09 Merrit

Yes my compositor of enabled. And anyway the problem also occurs in the double window in your case. So even though the composer is enabled, the problem still arises. I think there is some other underlying problem.

0Franky avatar Sep 12 '22 15:09 0Franky

@0Franky Hey! I encountered the same issue, and removing

gtk_widget_show(GTK_WIDGET(window));
gtk_widget_show(GTK_WIDGET(view));

from my_application.cc made it all work. The only issue now is that the window doesn't have any shadows anymore, though I don't think there's a workaround for that.

whiskeyPeak avatar Dec 10 '22 20:12 whiskeyPeak

I home this issue can be fixed as soon as possible 🙂

0Franky avatar Dec 10 '22 20:12 0Franky

I've reproduced the same issue while trying to create sub-windows that have transparency; transparency works fine in the main window.

Here is a minimal reproducible example

@0Franky Are you having issues in a similar situation, or do you have this issue even in the standard counter app?

image

Did you get anything currently by trying to enable transparency on the second screen?

lewisHeart avatar Jan 27 '23 20:01 lewisHeart

Did you get anything currently by trying to enable transparency on the second screen?

I've still not been able to get a sub-window to enable transparency. :/

Merrit avatar Jan 30 '23 16:01 Merrit