[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opacity not working in Form_Open (gtk)


On Tue, 15 Apr 2025 at 19:05, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 15/04/2025 à 20:01, Benoît Minisini a écrit :
> > Le 15/04/2025 à 14:12, Bruce Steers a écrit :
> >>
> >>     Mmm... I'm not sure that setting the opacity after the window has
> >> been
> >>     shown will work with all window managers.
> >>
> >>     --     Benoît Minisini.
> >>
> >>
> >> I am finding quite the opposite.
> >> I am able to change it once the program has loaded.  (for example with
> >> a slider)
> >>
> >> Trying to set it before the window is shown is where the troubles are.
> >> (it used to work okay, something must have changed)
> >>
> >> Respects
> >> BruceS
> >>
> >
> > If you set the opacity during the Open event, everything works perfectly
> > in all components when using KDE window manager and X11.
> >
> > If you set the opacity only in the property sheet, i.e. during the
> > window instanciation, it works for all components except GTK+3.
> >
> > I will look at the last problem, but I guess you have to move to a
> > window manager that supports the Opacity property (it's purely a
> > compositor thing).
> >
> > I will test if it works with Wayland, but there is always a doubt with
> > that beast. :-(
> >
> > Regards,
> >
>
> Lol. With wayland it works only with GTK+2 and GTK+3, and what didn't
> work with GTK+3 now works.
>
> So it's not just the window manager. It's more horrible than that, as
> even Qt with KDE window manager / Wayland, it does not work.
>
> Go figure that madness.
>
> If you need a workaround, you can set the background color of your
> window to a transparent color. But then the title bar will stay opaque.
>
> Regards,
>
> --
> Benoît Minisini.


After what you said i tried some alternatives and found i was getting this
issue only with *Marco* + Compositing

With Compiz and with Metacity+Compositing it all seems to work okay as
expected.

I must have changed WM to Marco at some point and only just noticed opacity
not working.

Thanks Benoit
BruceS

Follow-Ups:
Re: Opacity not working in Form_Open (gtk)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Opacity not working in Form_Open (gtk)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Opacity not working in Form_Open (gtk)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Opacity not working in Form_Open (gtk)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Opacity not working in Form_Open (gtk)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Opacity not working in Form_Open (gtk)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>