Make XYToWindow a screen function
authorKeith Packard <keithp@keithp.com>
Tue, 1 Apr 2014 06:55:25 +0000 (23:55 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 1 Apr 2014 17:30:42 +0000 (10:30 -0700)
commit73698d41e41ce76bef2d9a90b46ac0c24ae148dd
tree5b3071927bc4315321cc9872361b5763caf3806c
parent9d20d18fb9dcc74bfa5392a2da40fd41b3e640d3
Make XYToWindow a screen function

This allows DDXen to override the window picking to account for
native windows not seen by the X server.  The bulk of the picking logic
is exposed as a new helper function, miSpriteTrace().  This function
completes the sprite trace filled out by the caller, and can be set up
to start the search from a given toplevel window.

v2: Leave existing XYToWindow API in place for API compatibility

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
dix/events.c
include/input.h
include/scrnintstr.h
mi/mi.h
mi/miscrinit.c
mi/miwindow.c