data-device: Clean up the logic in start_drag
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Jun 2014 04:19:24 +0000 (21:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Jun 2014 16:05:26 +0000 (09:05 -0700)
commit8202d72054575bea0cd20cb252c119cac6b12561
tree95c915e001711460e40545b59466a5c70760a4b3
parent7da71eec4006ecddb14d35345d76b07c5edfb3f2
data-device: Clean up the logic in start_drag

Previoiusly, we had a mess of logic that was repeated with one of the
repeats negated.  Not only was this unnecisaraly confusing, but it
segfaulted and one of the negations was wrong.  This cleans the whole mess
up and should fix bug #79725.
src/data-device.c