summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-01-15 21:14:26 +0100
committerJonas Ådahl <jadahl@gmail.com>2016-01-19 12:34:36 +0800
commitb288988e831cee3deb7f8bb1a3f440c86230dd9f (patch)
treec051246d0e783a8ce122e7e3505101b58f133def /clients
parent5ccf0476c3319f468f303d47c5d9bf25e314558c (diff)
downloadweston-b288988e831cee3deb7f8bb1a3f440c86230dd9f.tar.gz
data-device: Implement compositor-chosen actions
Set up a keyboard grab during drag-and-drop, so we can translate modifiers into preferred actions. The compositor chosen action is stored in the current weston_data_source in order to make it accessible to the source/offer at the time of calculating the new action, but would conceptually be part of weston_drag. The mapping has been made similar to what GTK+/QT usually do, the shift key defaults to "move" and ctrl defaults to "copy". Changes since v2: - Use enum types and values for the compositor action. Fix code formatting issues. Changes since v1: - Handle the keyboard grab being cancelled. Initialize new wl_data_source fields. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'clients')
0 files changed, 0 insertions, 0 deletions