weston/src
Carlos Garnacho 9c93179023 data-device: Implement DnD actions
The policy in weston in order to determine the chosen DnD action is
deliberately simple, and is probably the minimals that any compositor
should be doing here.

Besides honoring the set_actions requests on both wl_data_source and
wl_data_offer, weston now will emit the newly added "action" events
notifying both source and dest of the chosen action.

The "dnd" client has been updated too (although minimally), so it
notifies the compositor of a "move" action on both sides.

Changes since v8:
  - Add back wl_data_offer.source_actions emission, gone during last
    code shuffling. Fix nits found in review.

Changes since v7:
  - Fixes spotted during review. Add client-side version checks.
    Implement .action emission as specified in protocol patch v11.

Changes since v6:
  - Emit errors as defined in DnD actions patch v10.

Changes since v5:
  - Use enum types and values for not-a-bitfield stored values.
    handle errors when finding unexpected dnd_actions values.

Changes since v4:
  - Added compositor-side version checks. Spaces vs tabs fixes.
    Fixed resource versioning. Initialized new weston_data_source/offer
    fields.

Changes since v3:
  - Put data_source.action to use in the dnd client, now updates
    the dnd surface like data_source.target events do.

Changes since v2:
  - Split from DnD progress notification changes.

Changes since v1:
  - Updated to v2 of DnD actions protocol changes, implement
    wl_data_offer.source_actions.
  - Fixed coding style issues.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Michael Catanzaro <mcatanzaro@igalia.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
2016-01-19 12:34:35 +08:00
..
animation.c animation: Fix potential leak of memory pointed to by move 2015-10-05 18:54:29 -07:00
bindings.c Add a weston_pointer_axis_event 2016-01-19 10:53:16 +08:00
clipboard.c Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
cms-colord.c cms-colord: Add missing '\n' in weston_log usage 2015-10-01 10:04:21 -07:00
cms-helper.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
cms-helper.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
cms-static.c cms-helper/static: Add "identity" builtin cms profile (v3) 2015-07-23 12:29:49 -07:00
compositor-drm.c compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
compositor-fbdev.c compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
compositor-headless.c compositor: pass the backend config struct to the backends init function 2015-10-23 15:23:37 -07:00
compositor-rdp.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
compositor-rpi.c compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
compositor-wayland.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
compositor-x11.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
compositor.c compositor: Make types consistent for bitshifting unsigned ints 2016-01-12 11:40:38 -08:00
compositor.h data-device: Implement DnD actions 2016-01-19 12:34:35 +08:00
data-device.c data-device: Implement DnD actions 2016-01-19 12:34:35 +08:00
dbus.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
dbus.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
gl-renderer.c gl-renderer: Fix comment typo 2016-01-13 18:48:56 -08:00
gl-renderer.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
input.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
launcher-direct.c launcher: Split out launcher implementations into three distinct ones 2015-09-23 15:47:48 -07:00
launcher-impl.h launcher: Split out launcher implementations into three distinct ones 2015-09-23 15:47:48 -07:00
launcher-logind.c launcher-logind: Remove old VT switching code, move to SwitchTo/Activate 2015-09-23 15:47:50 -07:00
launcher-util.c compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
launcher-util.h compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
launcher-weston-launch.c weston-launch: Remove unused event source 2015-10-23 12:34:11 -07:00
libbacklight.c Whitespace corrections 2015-06-06 12:39:51 -07:00
libbacklight.h libbacklight: Add missing boilerplate to header 2015-06-15 13:04:18 -07:00
libinput-device.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
libinput-device.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
libinput-seat.c input: Split get_udev_seat() into its own function 2015-10-14 15:57:25 -07:00
libinput-seat.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
linux-dmabuf.c linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct 2015-12-02 16:50:15 -06:00
linux-dmabuf.h linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct 2015-12-02 16:50:15 -06:00
log.c log: Open log file CLOEXEC so child processes don't get the fd 2015-07-16 19:28:36 -07:00
main.c compositor-{drm, fbdev, rpi}: Make VT switching configurable 2016-01-12 09:21:28 -06:00
noop-renderer.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
pixman-renderer.c compositor: Move weston_matrix_transform_region to compositor.c and export it 2015-11-20 15:27:55 +02:00
pixman-renderer.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
rpi-bcm-stubs.h rpi: Support opaque regions 2013-12-02 11:36:29 -08:00
rpi-renderer.c compositor: Change "touched" to bool 2015-11-20 15:27:55 +02:00
rpi-renderer.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
screen-share.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
screenshooter.c Rename screenshooter protocol to weston_screenshooter 2015-11-19 15:07:24 +02:00
spring-tool.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
systemd-notify.c compositor: systemd notifications support 2015-09-25 15:11:32 -07:00
text-backend.c Use input method protocol from wayland-protocols 2015-11-19 13:17:59 +02:00
timeline-object.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
timeline.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
timeline.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
vaapi-recorder.c cosmetic: Remove use of C++ style comments 2015-12-03 15:28:53 -08:00
vaapi-recorder.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
version.h.in src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
vertex-clipping.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
vertex-clipping.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
weston-egl-ext.h gl-renderer: add dmabuf import 2015-08-14 15:53:26 +03:00
weston-launch.c weston-launch: On error putenv returns a non-zero value 2015-08-10 15:28:46 -07:00
weston-launch.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
weston.desktop build: install a login manager session entry 2015-01-20 19:44:58 -08:00
weston.pc.in weston.pc: Added libexecdir and pkglibexecdir variables 2013-06-04 00:14:04 -04:00
zoom.c zoom: remove temporary variables 2015-10-09 11:17:41 -05:00