client.content: Use correct client size (FS#1150)
commit11bef0795a450865b589c1c906bf97141436d314
authorUli Schlachter <psychon@znc.in>
Mon, 16 Sep 2013 10:06:10 +0000 (16 12:06 +0200)
committerUli Schlachter <psychon@znc.in>
Mon, 16 Sep 2013 10:06:10 +0000 (16 12:06 +0200)
tree31f141ea0ea009d717814385442b5924c482f953
parentbb304c80a35ecd92e42ead3f4632e4701e211c1a
client.content: Use correct client size (FS#1150)

The size saved in c->geometry also includes the titlebars. Thus, for getting the
window content, we have to subtract this from the size.

Before this, the call to xcb_image_get() was failing with a BadMatch error,
because we were asking for an area that is outside of the actual client's
window's geometry.

Signed-off-by: Uli Schlachter <psychon@znc.in>
objects/client.c