aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--picom.sample.conf38
-rw-r--r--src/win.c2
2 files changed, 10 insertions, 30 deletions
diff --git a/picom.sample.conf b/picom.sample.conf
index 6025a28..cd6214f 100644
--- a/picom.sample.conf
+++ b/picom.sample.conf
@@ -55,22 +55,18 @@ animation-unmap-exclude = [
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
-# shadow = true
shadow = false;
# The blur radius for shadows, in pixels. (defaults to 12)
-# shadow-radius = 12
shadow-radius = 7;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
# shadow-opacity = .75
# The left offset for shadows, in pixels. (defaults to -15)
-# shadow-offset-x = -15
shadow-offset-x = -7;
# The top offset for shadows, in pixels. (defaults to -15)
-# shadow-offset-y = -15
shadow-offset-y = -7;
# Red color value of shadow (0.0 - 1.0, defaults to 0).
@@ -100,15 +96,12 @@ shadow-exclude = [
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used.
-# fading = false
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
-# fade-in-step = 0.028
fade-in-step = 0.03;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
-# fade-out-step = 0.03
fade-out-step = 0.03;
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
@@ -130,15 +123,12 @@ fade-out-step = 0.03;
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
-# inactive-opacity = 1
inactive-opacity = 0.8;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
-# frame-opacity = 1.0
frame-opacity = 0.7;
-# Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows.
-# inactive-opacity-override = true
+# Overries any opacities set in `opacity-rule`
inactive-opacity-override = false;
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
@@ -148,20 +138,14 @@ inactive-opacity-override = false;
# inactive-dim = 0.0
# Specify a list of conditions of windows that should never be considered focused.
-# focus-exclude = []
focus-exclude = [ "class_g = 'Cairo-clock'" ];
# Use fixed inactive dim value, instead of adjusting according to window opacity.
# inactive-dim-fixed = 1.0
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
-# like `50:name *= "Firefox"`. picom-trans is recommended over this.
-# Note we don't make any guarantee about possible conflicts with other
-# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
-# example:
-# opacity-rule = [ "80:class_g = 'URxvt'" ];
-#
-# opacity-rule = []
+# like `50:name *= "Firefox"`.
+opacity-rule = [];
#################################
@@ -169,9 +153,8 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ];
#################################
# Sets the radius of rounded window corners. When > 0, the compositor will
-# round the corners of windows. Does not interact well with
-# `transparent-clipping`.
-corner-radius = 0
+# round the corners of windows.
+corner-radius = 1
# Exclude conditions for rounded corners.
rounded-corners-exclude = [
@@ -186,18 +169,19 @@ rounded-corners-exclude = [
# Parameters for background blurring, see the *BLUR* section for more information.
-# blur-method =
+blur-method = "dual_kawase"
+#
# blur-size = 12
#
# blur-deviation = false
#
-# blur-strength = 5
+blur-strength = 5
# Blur background of semi-transparent / ARGB windows.
# Bad in performance, with driver-dependent behavior.
# The name of the switch may change without prior notifications.
#
-# blur-background = false
+blur-background = true
# Whitelist for windows to have background blurring
@@ -216,17 +200,13 @@ blur-rule = [
# daemon = false
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
-# backend = "glx"
backend = "glx";
# Enable/disable VSync.
-# vsync = false
vsync = true;
# Try to detect windows with rounded corners and don't consider them
# shaped windows. The accuracy is not very high, unfortunately.
-#
-# detect-rounded-corners = false
detect-rounded-corners = true;
log-level = "info";
diff --git a/src/win.c b/src/win.c
index 0741ed8..c554dc4 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1135,7 +1135,7 @@ double win_calc_opacity_target(session_t *ps, const struct managed_win *w) {
if (ps->o.support_for_wm == WM_SUPPORT_DWM) {
if (win_is_focused_raw(ps, w)) {
opacity = w->opacity_set;
- } else if (!win_is_focused_raw(ps, w)) {
+ } else if (!w->focused) {
if (ps->o.inactive_opacity == 1.0) {
opacity = w->opacity_set;
} else {