diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-22 17:19:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-22 17:19:44 +0100 |
commit | 69739f199e462a017cbf5e4c70368dbccc0b3c5a (patch) | |
tree | 477f7dbc4f6784967460b0d8f14793d956fda483 | |
parent | bf4e728966bd47b709c9a1c6fdccdd2fe79f3f66 (diff) |
winwdiget.c: properly cast XGetGeometry args
-rw-r--r-- | src/winwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index c629f68..937e8a2 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -983,7 +983,8 @@ void winwidget_get_geometry(winwidget winwid, int *rect) if (!rect) return; - XGetGeometry(disp, winwid->win, &root, &(rect[0]), &(rect[1]), &(rect[2]), &(rect[3]), &bw, &bp); + XGetGeometry(disp, winwid->win, &root, &(rect[0]), &(rect[1]), (unsigned + int *)&(rect[2]), (unsigned int *)&(rect[3]), &bw, &bp); XTranslateCoordinates(disp, winwid->win, root, 0, 0, &(rect[0]), &(rect[1]), &child); |