diff options
author | Chris Halse Rogers <christopher.halse.rogers@canonical.com> | 2012-01-05 01:22:39 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-09 13:09:48 -0800 |
commit | ef492e9797b6d4f6bbc25e86bedc24477819fde7 (patch) | |
tree | 0f7b3c1c42fb0c68cae2eb2a8fcc03f905697b8f /glx/glxdriswrast.c | |
parent | ff891bbf68caefc22cabb541b6b56af086ac2280 (diff) |
dix: Return BadWindow rather than BadMatch from dixLookupWindow
dixLookupWindow uses dixLookupDrawable internally, which returns
BadMatch when the XID matches a non-Window drawable. Users
of dixLookupWindow don't care about this, just that it's not
a valid Window.
This is a generalised version of the fix for X.Org Bug 23562,
where GetProperty was incorrectly returning BadMatch. Auditing other
window requests, all that I checked would incorrectly return BadMatch
in these circumstances. An incomplete list of calls that could
incorrectly return BadMatch is: ListProperties, SetSelectionOwner,
{Destroy,Map,Unmap}{,Sub}Window.
None of the callers of dixLookupWindow, except for GetProperty, check
for BadMatch
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx/glxdriswrast.c')
0 files changed, 0 insertions, 0 deletions