aboutsummaryrefslogtreecommitdiff
path: root/xdeadzone.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdeadzone.c')
-rw-r--r--xdeadzone.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xdeadzone.c b/xdeadzone.c
index e3446f9..2e43dc3 100644
--- a/xdeadzone.c
+++ b/xdeadzone.c
@@ -154,6 +154,9 @@ int main(int argc, char **argv) {
if(width == 0 || height == 0)
errmsg("bad geometry: width and height must be non-zero");
+ if(normal_window && !visible)
+ errmsg("cannot combine -i (invisible) with -n (normal window)");
+
if(!(d = XOpenDisplay(NULL)))
errmsg("can't open X display");
@@ -188,7 +191,7 @@ int main(int argc, char **argv) {
DefaultRootWindow(d),
x, y, width, height, 0,
CopyFromParent,
- InputOutput,
+ (visible ? InputOutput : InputOnly),
CopyFromParent,
(visible ? CWBackPixel : 0) | CWOverrideRedirect | CWEventMask,
&setattr);