Feature: --no-fading-openclose to partially simulate -F

-F hasn't being working for long. This commit adds a switch
--no-fading-openclose (and a configuration file option of the same name)
to simulate the behavior when only -F is enabled, which disables fading
when opening/closing windows, and makes -F an alias for -f.
This commit is contained in:
Richard Grenville
2012-09-26 21:40:48 +08:00
parent 8c0379180b
commit 75ebe94bb6
3 changed files with 38 additions and 9 deletions

View File

@ -270,7 +270,7 @@ typedef struct _options {
/// How much to fade out in a single fading step.
opacity_t fade_out_step;
unsigned long fade_delta;
Bool fade_trans;
Bool no_fading_openclose;
/// Fading blacklist. A linked list of conditions.
wincond *fade_blacklist;
@ -725,6 +725,9 @@ map_win(Display *dpy, Window id,
unsigned long sequence, Bool fade,
Bool override_redirect);
static void
finish_map_win(Display *dpy, win *w);
static void
finish_unmap_win(Display *dpy, win *w);