diff options
| author | allusive-dev <[email protected]> | 2023-11-05 07:37:28 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-11-05 07:37:28 +1100 |
| commit | 52622989ab2766cdce58ef4364bee40596ca0e3c (patch) | |
| tree | 26db8861ea799ef825d8383a213cb0b6e43e8166 | |
| parent | default backed to xrender just in case (diff) | |
| download | compfy-52622989ab2766cdce58ef4364bee40596ca0e3c.tar.xz compfy-52622989ab2766cdce58ef4364bee40596ca0e3c.zip | |
slight tweaks
| -rw-r--r-- | meson.build | 4 | ||||
| -rw-r--r-- | picom.sample.conf | 17 | ||||
| -rw-r--r-- | src/picom.c | 36 |
3 files changed, 36 insertions, 21 deletions
diff --git a/meson.build b/meson.build index e7ed5ec..95cb3f0 100644 --- a/meson.build +++ b/meson.build @@ -1,10 +1,10 @@ -project('picom', 'c', version: '1.2.9', +project('picom', 'c', version: '1.3.1', default_options: ['c_std=c11', 'warning_level=1']) cc = meson.get_compiler('c') # use project version by default -version = 'v1.2.9' +version = 'v1.3.1' # use git describe if that's available # git = find_program('git', required: false) diff --git a/picom.sample.conf b/picom.sample.conf index 7111256..61bc10b 100644 --- a/picom.sample.conf +++ b/picom.sample.conf @@ -145,6 +145,23 @@ active-opacity = 1.0 # Dim inactive windows. (0.0 - 1.0, defaults to 0.0) # inactive-dim = 0.0 + +# A list of windows that should have their inactive-opacity set to whatever the active-opacity is. +# Unless the window is also in active-opacity-exclude then it will be set to 1.0 or if it is set in "opacity-rule", +# it will use the opacity set there as the inactive-opacity +# +# inactive-opacity-exclude = [ +# "class_g = 'dwm'" +# ]; + + +# A list of windows that should never have their opacity changed by active-opacity when focused. +# +# active-opacity-exclude = [ +# "class_g = 'dwm'" +# ]; + + # Specify a list of conditions of windows that should never be considered focused. # focus-exclude = [ # "class_g = 'Cairo-clock'" diff --git a/src/picom.c b/src/picom.c index b96e8f6..c8dea67 100644 --- a/src/picom.c +++ b/src/picom.c @@ -867,25 +867,23 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) { w->animation_velocity_h = 0.0; } - // if (!ps->root_desktop_switch_direction) { - // if (w->state == WSTATE_UNMAPPING || w->state == WSTATE_DESTROYING) { - // steps = 0; - // double new_opacity = clamp( - // w->opacity_target_old-w->animation_progress, - // w->opacity_target, 1); - - // if (new_opacity < w->opacity) - // w->opacity = new_opacity; - - // } else if (w->state == WSTATE_MAPPING) { - // steps = 0; - // double new_opacity = clamp( - // w->animation_progress, - // 0.0, w->opacity_target); - - // if (new_opacity > w->opacity) - // w->opacity = new_opacity; - // } + // if (w->state == WSTATE_UNMAPPING || w->state == WSTATE_DESTROYING) { + // steps = 0; + // double new_opacity = clamp( + // w->opacity_target_old-w->animation_progress, + // w->opacity_target, 1); + + // if (new_opacity < w->opacity) + // w->opacity = new_opacity; + + // } else if (w->state == WSTATE_MAPPING) { + // steps = 0; + // double new_opacity = clamp( + // w->animation_progress, + // 0.0, w->opacity_target); + + // if (new_opacity > w->opacity) + // w->opacity = new_opacity; // } *animation_running = true; |