Skip to content

Commit

Permalink
chore: Do't apply transparency to the docks as well
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximeno committed May 4, 2024
1 parent 32d670a commit 91bfd33
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const Tweener = imports.ui.tweener;

const SCROLL_DELAY = 200;

const WINDOWN_TYPES_FILTER_TRANSPARENCY = [
Meta.WindowType.DESKTOP,
Meta.WindowType.DOCK,
];

class CinnamonBarApplet extends Applet.Applet {
constructor(orientation, panel_height, instance_id) {
super(orientation, panel_height, instance_id);
Expand Down Expand Up @@ -127,7 +132,7 @@ class CinnamonBarApplet extends Applet.Applet {
let window = windows[i].meta_window;
let compositor = windows[i];

if (window.get_window_type() !== Meta.WindowType.DESKTOP) {
if (!WINDOWN_TYPES_FILTER_TRANSPARENCY.includes(window.get_window_type())) {
if (this.peek_blur) {
if (!compositor.eff)
compositor.eff = new Clutter.BlurEffect();
Expand Down

0 comments on commit 91bfd33

Please sign in to comment.