disable fading opacity changes

This commit is contained in:
Christopher Jeffrey 2011-12-09 08:46:40 -06:00
parent 48e0eccbbc
commit 1e2bb55744
3 changed files with 16 additions and 13 deletions

View File

@ -24,6 +24,6 @@ uninstall:
@rm -f $(MANDIR)/compton.1 @rm -f $(MANDIR)/compton.1
clean: clean:
rm -f $(OBJS) compton @rm -f $(OBJS) compton
.PHONY: uninstall clean .PHONY: uninstall clean

View File

@ -54,6 +54,7 @@ $ make install
``` bash ``` bash
$ compton -cC -i 0.6 -e 0.6 $ compton -cC -i 0.6 -e 0.6
$ compton -cC -i 0.6 -e 0.6 -fF
$ compton -cC -fF -I 0.065 -O 0.065 -D 6 -m 0.8 -i 0.6 -e 0.6 $ compton -cC -fF -I 0.065 -O 0.065 -D 6 -m 0.8 -i 0.6 -e 0.6
``` ```

View File

@ -1628,13 +1628,16 @@ determine_mode(Display *dpy, win *w) {
static void static void
set_opacity(Display *dpy, win *w, unsigned long opacity) { set_opacity(Display *dpy, win *w, unsigned long opacity) {
#if 0
if (fade_trans) { if (fade_trans) {
double old_opacity = (double)w->opacity / OPAQUE; double old_opacity = (double)w->opacity / OPAQUE;
w->opacity = opacity; w->opacity = opacity;
set_fade(dpy, w, old_opacity, set_fade(dpy, w, old_opacity,
(double)w->opacity / OPAQUE, (double)w->opacity / OPAQUE,
fade_out_step, 0, True, False); fade_out_step, 0, True, False);
} else { return;
}
#endif
w->opacity = opacity; w->opacity = opacity;
determine_mode(dpy, w); determine_mode(dpy, w);
if (w->shadow) { if (w->shadow) {
@ -1648,7 +1651,6 @@ set_opacity(Display *dpy, win *w, unsigned long opacity) {
/* rebuild the shadow */ /* rebuild the shadow */
w->extents = win_extents(dpy, w); w->extents = win_extents(dpy, w);
} }
}
} }
static void static void