X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fxwindow.c;h=2842be40c3f1a6065f367ac50171c97654b4b451;hp=16491c7efecb2dd6a1bdc8d6372ac444c2c6de0e;hb=HEAD;hpb=8366314611bf30a0f31d25bf5f5023186fa87692 diff --git a/ioncore/xwindow.c b/ioncore/xwindow.c index 16491c7..2842be4 100644 --- a/ioncore/xwindow.c +++ b/ioncore/xwindow.c @@ -1,12 +1,9 @@ /* * ion/ioncore/xwindow.c * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * 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 - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -112,10 +109,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); } /*}}}*/