drag-action: Re-use press_button in emit_drag_end()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 27 May 2010 11:30:22 +0000 (12:30 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 27 May 2010 11:30:22 +0000 (12:30 +0100)
commitb77c0c91d76f56f9c9c032ccec5c04c0ab37aeae
treed80502b64a91db4ac853b827ad50721e821f5026
parent346ebce57385eeee593ee51796274e7fbb9298e6
drag-action: Re-use press_button in emit_drag_end()

Since emit_drag_end() can be called from a MOTION event capture we
cannot call clutter_event_get_button(). We should, instead, use the
press_button value because if we're emitting ::drag-end it means we
also emitted ::drag-begin and the value is valid.
clutter/clutter-drag-action.c