diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-14 20:38:06 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-23 12:05:25 +0000 |
commit | 10e8a746d486ae6974a4f955ad362cd17035be63 (patch) | |
tree | ccc061ee9c3d60a21aa835658cd3a4760261bba4 | |
parent | 6c9dba885e4bd2c25d7ffe18f8787bab889bd18c (diff) |
Invert to make blur the default, since that works in more placesXtoW-20160323
-rw-r--r-- | man/xtow.man | 7 | ||||
-rw-r--r-- | src/main.c | 6 | ||||
-rw-r--r-- | src/wndproc.c | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/man/xtow.man b/man/xtow.man index 989aec6..c897393 100644 --- a/man/xtow.man +++ b/man/xtow.man @@ -16,15 +16,16 @@ from that X server into native \fIWindows\fP windows. \fIxtow\fP accepts the following command line switches, \fIall\fP of which are optional: .TP 8 -.B \-blur -If DWM is available, use the glass effect to blur the image beneath transparent areas. -.TP 8 .B \-display [display] Specifies the X server display to connect to. .TP 8 .B \-help List these options and exit. .TP 8 +.B \-noblur +Do not use the DWM glass effect to blur the image beneath transparent areas. +(Windows Vista and Window 7 only) +.TP 8 .B \-nodwm Do not use DWM, even if available (Windows Vista or later). per-pixel transparency will not be supported. @@ -144,9 +144,9 @@ static void help(void) { fprintf(stderr, "usage: xtow [options]\n"); - fprintf(stderr, "--blur use glass effect to blur the image beneath transparent areas\n"); fprintf(stderr, "--display dpy display to manage windows on\n"); fprintf(stderr, "--help\n"); + fprintf(stderr, "--noblur do not use glass effect to blur the image beneath transparent areas\n"); fprintf(stderr, "--nodwm do not use DWM, even if available\n"); fprintf(stderr, "--noshm do not use SHM, even if available\n"); fprintf(stderr, "--verbose output verbose debug logging\n"); @@ -173,7 +173,7 @@ int main(int argc, char **argv) { "version", no_argument, 0, 'V' }, { "display", required_argument, 0, 'd' }, { "help", no_argument, 0, 'h' }, - { "blur", no_argument, 0, 'b' }, + { "noblur", no_argument, 0, 'b' }, { "nodwm", no_argument, 0, 'n' }, { "noshm", no_argument, 0, 's' }, { "verbose", no_argument, 0, 'v' }, @@ -192,7 +192,7 @@ int main(int argc, char **argv) screen = optarg; break; case 'b': - blur = 1; + blur = 0; break; case 'n': nodwm = 1; diff --git a/src/wndproc.c b/src/wndproc.c index f639f4b..e61b786 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -52,7 +52,7 @@ #define WM_MOUSEHWHEEL 0x020E #endif -int blur = 0; +int blur = 1; PFNDWMENABLEBLURBEHINDWINDOW pDwmEnableBlurBehindWindow = NULL; PFNSETWINDOWCOMPOSITIONATTRIBUTE pSetWindowCompositionAttribute = NULL; |