summaryrefslogtreecommitdiff
path: root/src/wayland/meta-xwayland-dnd.c
Commit message (Collapse)AuthorAgeFilesLines
* wayland: Free selection streams streams after transferSebastian Keller2020-06-081-0/+1
| | | | | | They were only being closed but never freed. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1293
* wayland: Split MetaWaylandDataSource into a separate fileCarlos Garnacho2020-04-171-1/+1
| | | | | | | | | The split wasn't 100% clean, and some extra private API had to be added for it (but well, looking at the API, it's already evident there's a cleanup/streamlining task due). This is meant to be a refactor with no functional changes, so just go with it. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1193
* wayland/xdnd: Add error traps around Xdnd* IPCCarlos Garnacho2020-04-071-0/+24
| | | | | | | | | | | Make all of them spew criticals, except for XdndLeave as it's feasible to expect the window we are sending the event to did disappear in the way (eg. if the window is destroyed while the DnD operation is ongoing and the pointer is over the window). Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2590 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1184
* xwayland: Fix mime type atom list leak on DnD with more than 3 typesSebastian Keller2020-03-111-1/+1
| | | | | | Found using the clang static analyzer https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1117
* wayland: Don't access MetaWaylandSurface::window directlyJonas Ã…dahl2020-02-191-7/+13
| | | | | | | | It'll be moved to the role owning it, accessed via a helper function implemented by the role. Currently it still just fetches the field in MetaWaylandSurface. https://gitlab.gnome.org/GNOME/mutter/merge_requests/835
* xwayland: Set XDND source-side actions as per XDNDCarlos Garnacho2020-01-271-1/+5
| | | | | | | | | | | | | In XDND, we just get a hint on XdndPosition about what's the action chosen by the user. Make the data source actions the full set on XdndEnter (as we can't know better), and pass the hint in XdndPosition as the user chosen action as it should be. Makes Wayland drop sites aware of the user action as per XDND with X11 drag sources, and still makes modifiers during DnD work. https://gitlab.gnome.org/GNOME/mutter/issues/974 https://gitlab.gnome.org/GNOME/mutter/merge_requests/1005
* wayland: Preserve XdndTypeList for future callersCarlos Garnacho2020-01-271-1/+1
| | | | | | | | This Xdnd property is owned by the drag source, we shouldn't delete it when reading/proxying it to Wayland clients. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/2347 https://gitlab.gnome.org/GNOME/mutter/merge_requests/1005
* Replace ClutterPoint by graphene_point_tGeorges Basile Stavracas Neto2019-10-161-3/+3
| | | | | | | | Remove the tests for ClutterPoint since it's corresponding code moved to private ClutterStage methods. https://gitlab.gnome.org/GNOME/mutter/merge_requests/458
* xwayland: Use given X11 display for DnD setupOlivier Fourdan2019-08-191-5/+3
| | | | | | | Use the provided X11 display instead of poking into GDK to get the X11 display. https://gitlab.gnome.org/GNOME/mutter/merge_requests/735
* wayland: Reduce MetaXWaylandSelection to just DnDCarlos Garnacho2019-05-021-0/+948
All the actual selection management functionality is superseded by MetaSelection. Reduce it to just handling the XDND messaging and leave selections to MetaSelection. https://gitlab.gnome.org/GNOME/mutter/merge_requests/320