From 10e8a746d486ae6974a4f955ad362cd17035be63 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Mon, 14 Mar 2016 20:38:06 +0000 Subject: Invert to make blur the default, since that works in more places --- man/xtow.man | 7 ++++--- src/main.c | 6 +++--- 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 @@ -15,9 +15,6 @@ from that X server into native \fIWindows\fP windows. .SH OPTIONS \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. @@ -25,6 +22,10 @@ Specifies the X server display to connect to. .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. diff --git a/src/main.c b/src/main.c index 58935d1..0e63088 100644 --- a/src/main.c +++ b/src/main.c @@ -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; -- cgit v1.2.3