summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJess VanDerwalker <washu@sonic.net>2012-07-19 11:00:54 -0700
committerJess VanDerwalker <washu@sonic.net>2012-07-25 09:56:59 -0700
commit7a2e5f3f27c3c7cfbba3ac0d360e65b55d5ab6b0 (patch)
treeccf886d45bcd070f457354641fe682e9f5bcf161
parent03c81b4c34f7febafb7cd9f2bdc416968535ea76 (diff)
libxcwm: xcwm_image_copy_full not using correct coordinates.
Because xcwm_image_copy_full retrevies the window image in window relative coordinates, x & y should be 0. Was using the root relative x,y. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--src/libxcwm/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libxcwm/image.c b/src/libxcwm/image.c
index 749a996..c275d5b 100644
--- a/src/libxcwm/image.c
+++ b/src/libxcwm/image.c
@@ -48,8 +48,8 @@ xcwm_image_copy_full(xcwm_window_t *window)
/* Get the full image of the window */
image = xcb_image_get(window->context->conn,
window->window_id,
- geom_reply->x,
- geom_reply->y,
+ 0,
+ 0,
geom_reply->width,
geom_reply->height,
(unsigned int)~0L,