Code Monkey home page Code Monkey logo

Comments (4)

lukefromdc avatar lukefromdc commented on August 17, 2024 1

MATE supports running under multiple window managers. We ship Marco, and Compiz is a widely used replacement as it was in the GNOME 2 days. Gnome-shell is simply a combined window manager and panel replacement. A rendering artifact in gnome-shell implies a similar problem may be possible under other window managers too, I suspect Mutter would be affected if nothing else. Since Cinnamon is a gnome-shell fork, it too could be affected though since that fork was long ago there could be different behavior.

I just tested this, and found that on my setup (Debian Unstable) transparency did not work at all in gnome-shell, and in Cinnamon was composited to the desktop background, ignoring all windows between. Both tests were with
gnome-shell --replace and cinnamon --replace respectively, leaving caja managing the desktop

from mate-terminal.

marcxjo avatar marcxjo commented on August 17, 2024

One observation that I want to call out: the code currently does not make use of gtk_widget_app_set_paintable to effect background transparency for the screen widget. Based on discussion in #240, the upshot of the discussion seems to have been that

  • solving this issue while preserving the current approach to transparency would require loading-in a CSS fix on startup for the menubar (using either a flat CSS file or gresource)
  • using CSS to solve this specific issue would be a hack

I understand the reasoning and agree, but I want to note that gtk_widget_set_app_paintable is the common solution employed by a few of the major GTK3/VTE apps, including tilix, xfce4-terminal, and previously gnome-terminal*, and at least based on my own repeated testing over the past few days, transparency appears to behave as expected for all such applications under GNOME Shell. xfce4-terminal makes use of this approach without needing to load in any resources to ensure menubar opacity.

I suspect it would not be terribly difficult to re-implement this approach without needing a CSS fix for the menubar, but as an interim fix and to ensure consistent behavior, I'm not sure it's the worst possible solution.

* I use a patched gnome-terminal which restores this specific implementation to enable transparency, and I can confirm that it does not display any unusual behavior when running with transparency enabled under GNOME Shell.

from mate-terminal.

marcxjo avatar marcxjo commented on August 17, 2024

@lukefromdc Thanks very much for testing on your setup, especially confirming Cinnamon behavior.

I've pushed up #434 and am seeing desired behavior when applied to latest master. Not much to it, but any feedback regarding style, implementation, etc. is highly appreciated.

from mate-terminal.

marcxjo avatar marcxjo commented on August 17, 2024

Closing as apparently fixed by #434.

Happy to contribute further if additional/related transparency issues are surfaced.

from mate-terminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.