On Mon, 23 Nov 2009 12:04:31 +1000, Peter Hutterer <[email protected]> 
wrote:

> XIDeleteDeviceProperty can be called from other places (e.g. ptr
> acceleration or a driver).

Note that the matching function for window properties (DeleteProperty)
returns Success for missing properties currently; I'd suggest that the
device property API should do the same thing. (Alternatively, it should
probably return BadMatch as BadAtom has a very specific meaning (an
invalid atom was specified, not that the atom doesn't match a property)).

Given that this function hasn't ever been used outside of DIX, I'd say
making it do what DIX wants is a reasonable default. Any code caring
whether the property existed before deleting it can check separately.

-- 
[email protected]

Attachment: pgpRNHMQtWqUQ.pgp
Description: PGP signature

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to