You are not logged in.

#1 2017-02-21 08:00:26

crimp2333
Member
Registered: 2016-11-15
Posts: 15

[SOLVED] gtk3 shadow Problem

Hi guys,

I really love bunsenlabs and our community. It's one of the best distros I've ever used.
It runs just fine on my 2016 Macbookair!

now my "problem":
bl-compositor is running but the shadows around some Windows are extremly big and ugly.
I think these are gtk3 Windows.

Is it possible to get rid of the big shadows or the gtk3 programs?

the screenshot explains it better:

2017-02-21--1487663848_1420x716_scrot.png


thank you for reading and kind regards !! greetings crimp2333

Offline

#2 2017-02-21 14:35:04

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] gtk3 shadow Problem

Which theme are you using? Do you get it in all themes?

If all else fails, you can add applications to the shadow_exclude in compton.conf. ("Menu -> Preferences -> Compositor  -> Edit")


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-02-21 15:50:30

cpoakes
Member
Registered: 2016-12-02
Posts: 108

Re: [SOLVED] gtk3 shadow Problem

See this compton github post. I use the suggestions for _NET_WM_OPAQUE_REGION for a solution to this problem.

Here is my customized version of compton.conf. Of particular note is the "shadow-exclude" stanza. Use the file as an example (copying the whole thing verbatim won't act like stock Bunsen.)

# compton.conf

# Rendering
#   backend = glx|xrender
#     glx aka OpenGL
#   vsync = none|drm|opengl|opengl-oml|opengl-swc|opengl-mswc
#     sw-opti always false with vsync = drm|opengl|opengl-oml
#  dbe = false
#    DBE paint used with vsync to eliminate tearing, but uneffective
#  refresh-rate = 0
#    Auto-detect rate with X RandR
#backend = "glx";
backend = "xrender";
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = "undefined";
vsync = "opengl";
sw-opti = false;
dbe = false;
refresh-rate = 0;

# Window Handling
paint-on-overlay = true;
#detect-client-opacity = true;
detect-client-opacity = false;
detect-rounded-corners = false;
mark-wmwin-focused = true;
mark-ovredir-focused = true;

# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 12;
shadow-offset-x = -16;
shadow-offset-y = -16;
shadow-opacity = 0.7;
#shadow-ignore-shaped = false;

# shadow-exclude 
# [nig]:[easwp][i]:<pattern>
#   target: n window name, i instance class, g general class
#   match: e exact, a anywhere, s at start, w wildcard, p pcre (if supported)
#   flag: i case insensitive 
#   pattern
#
# "_NET_WM_OPAQUE_REGION@:c" 		fixes GTK3 CSD related shadow problem
# 'argb && _NET_WM_OPAQUE_REGION@:c' 	...also (reported)
# '_GTK_FRAME_EXTENTS@:c'		...also (reported)
shadow-exclude = [ "n:a:notifyd", "g:e:Conky", "g:e:Tint2", "_NET_WM_OPAQUE_REGION@:c" ] ;

# Opacity
#   frame-opacity = N.N
#     Caveat: maximized windows are transparent in openbox 3.5 w/ frame opacity
#   alpha-step = N.N
#     Only relevant to xrender backend
menu-opacity = 0.90;
#frame-opacity = 1.0;
#inactive-opacity = 0.8;
#inactive-opacity-override = false;
alpha-step = 0.06;

# Fading
#   fade-delta = N
#     N is period in ms
fading = true;
fade-delta = 10;
fade-in-step = 0.09;
fade-out-step = 0.03;
no-fading-openclose = true;

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.85; };
};

Offline

#4 2017-02-21 16:29:37

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,039
Website

Re: [SOLVED] gtk3 shadow Problem

Yes, this looks like the gtk3 client side decorations double shadow bug. This should disappear if you switch to any of the default BL themes.

You can also try editing the /gtk-3.x/gtk.css file of the theme your using...

https://github.com/numixproject/numix-g … issues/206

You might need to log out to see the change.

This workaround doesn't work in stretch or higher, AFAIK.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Online

#5 2017-02-21 16:46:34

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,039
Website

Re: [SOLVED] gtk3 shadow Problem

Found the hack I used for bunsen-themes, it's at the bottom of gtk-widgets.css

/* CSD hack */

.window-frame, .window-frame:backdrop {
 box-shadow: 0 0 0 black;
 border-style: none;
 margin: 1px;
 border-radius: 0;
}

.titlebar {
 border-radius: 0;
}

No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Online

#6 2017-02-23 13:36:03

crimp2333
Member
Registered: 2016-11-15
Posts: 15

Re: [SOLVED] gtk3 shadow Problem

thank you so much, for so much information! I'll try. I think switching the theme is the my solution.  great community!! have a nice week

Offline

#7 2017-02-23 14:05:27

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,039
Website

Re: [SOLVED] gtk3 shadow Problem

I'll mark this [SOLVED], post back here if it's still an issue, or open another thread if you have a new issue. Thanks!


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Online

Board footer

Powered by FluxBB