X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fxwindow.c;h=9d4cea79e1ceec6ce446abc77350088acd96b079;hb=de22e45179cb3bafa490294d31d47f361047a30a;hp=16491c7efecb2dd6a1bdc8d6372ac444c2c6de0e;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/ioncore/xwindow.c b/ioncore/xwindow.c index 16491c7..9d4cea7 100644 --- a/ioncore/xwindow.c +++ b/ioncore/xwindow.c @@ -1,7 +1,7 @@ /* * ion/ioncore/xwindow.c * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2007. * * Ion is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by @@ -112,10 +112,10 @@ void xwindow_set_cursor(Window win, int cursor) bool xwindow_pointer_pos(Window rel, int *px, int *py) { Window win=None, realroot=None; - int wx=0, wy=0; + int rx=0, ry=0; uint mask=0; return XQueryPointer(ioncore_g.dpy, rel, &realroot, &win, - px, py, &wx, &wy, &mask); + &rx, &ry, px, py, &mask); } /*}}}*/