diff options
-rw-r--r-- | src/libdraw/x11-init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libdraw/x11-init.c b/src/libdraw/x11-init.c index b1afcf19..14c96a66 100644 --- a/src/libdraw/x11-init.c +++ b/src/libdraw/x11-init.c @@ -466,6 +466,10 @@ xattach(char *label) ch.x = r.min.x; ch.y = r.min.y; XConfigureWindow(_x.display, _x.drawable, CWX|CWY, &ch); + /* + * Must pretend origin is 0,0 for X. + */ + r = Rect(0,0,Dx(r),Dy(r)); } /* * Look up clipboard atom. |