wlroots/types
emersion f001f98cef
gtk-primary-selection: refactor everything, untie from seat
This commits completely refactors wlr_gtk_primary_selection. The goal is to
remove gtk-primary-selection state from the seat and better handle inert
resources where it makes sense.

wlr_seat_client.primary_selection_devices has been removed and replaced by
wlr_gtk_primary_selection_device. This allows us to make offers inert when the
current selection is replaced.

wlr_seat_set_primary_selection has been removed because it relied on wlr_seat
instead of wlr_gtk_primary_selection_device_manager. A new function,
wlr_gtk_primary_selection_device_manager_set_selection (candidate for the
longest function name in wlroots) has been added. It doesn't take a serial
anymore as serial checking only makes sense for set_selection requests coming
from Wayland clients (serial checking is now done in the Wayland interface
implementation).

Since wlr_gtk_primary_selection_device_manager is now required to set the
selection, a new function wlr_xwayland_set_gtk_primary_selection_device_manager
(candidate number two for longest function name) has been added.

Devices are now made inert when the seat goes away.

Future work includes removing the last primary selection bits from the seat,
mainly wlr_seat.primary_selection_source and wlr_seat.events.primary_selection,
replacing those with new fields in wlr_gtk_primary_selection_device. Or maybe
we could keep those in the seat and replace them with a re-usable interface
(for future zwp_primary_selection_v1 support). We need to think how we'll sync
these three protocols (GTK, X11 and wayland-protocols).

See https://github.com/swaywm/wlroots/issues/1388
2018-11-27 18:57:26 +01:00
..
data_device data-device: never cancel the source when offer is destroyed 2018-11-26 12:35:49 +01:00
seat gtk-primary-selection: refactor everything, untie from seat 2018-11-27 18:57:26 +01:00
tablet_v2 tablet-v2: fix segfault on display destroy 2018-11-12 20:05:13 +01:00
xdg_shell xdg-shell: don't destroy xdg role state on role destroy 2018-11-12 19:37:22 +01:00
xdg_shell_v6 Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
meson.build Rename wlr_primary_selection to wlr_gtk_primary_selection 2018-11-23 11:58:56 +01:00
wlr_box.c Implement pointer-constraints protocol in wlroots and rootston 2018-09-18 10:14:33 +02:00
wlr_buffer.c Remove fmt parameter from wlr_texture_write_pixels 2018-10-15 23:56:56 +02:00
wlr_compositor.c Merge pull request #1116 from emersion/surface-role 2018-07-11 15:27:42 -07:00
wlr_cursor.c output-layout, cursor: fix duplicate cursors 2018-10-19 14:50:35 +02:00
wlr_export_dmabuf_v1.c export-dmabuf: disable hardware cursors if desired 2018-09-18 11:48:04 +02:00
wlr_gamma_control.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_gamma_control_v1.c gamma-control-v1: add missing destroy handler 2018-09-29 14:30:41 +02:00
wlr_gtk_primary_selection.c gtk-primary-selection: refactor everything, untie from seat 2018-11-27 18:57:26 +01:00
wlr_idle.c idle: allow zero timeout 2018-10-28 09:22:12 +01:00
wlr_idle_inhibit_v1.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_input_device.c Use _POSIX_C_SOURCE, use shm_open 2018-11-06 08:29:23 +01:00
wlr_input_inhibitor.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_input_method_v2.c input-method-v2: initialize destroy signal 2018-10-28 12:23:47 +01:00
wlr_keyboard.c Send unique keymap file descriptors 2018-09-18 13:58:36 +05:30
wlr_layer_shell_v1.c layer-shell: add _v1 suffix 2018-09-14 19:32:33 +02:00
wlr_linux_dmabuf_v1.c Support older wlr_linux_dmabuf_v1 clients 2018-10-12 23:07:45 +02:00
wlr_list.c Revert "ELF Visibility" 2018-02-19 18:01:27 -05:00
wlr_matrix.c Fix typos in comments and strings 2018-05-03 21:59:43 +01:00
wlr_output.c output: add wlr_output_preferred_read_format() 2018-11-24 10:54:25 +01:00
wlr_output_damage.c output-damage: limit the number of damaged rectangles 2018-05-05 14:28:55 +01:00
wlr_output_layout.c output-layout, cursor: fix duplicate cursors 2018-10-19 14:50:35 +02:00
wlr_pointer.c backend/x11: correctly destroy input devices 2018-04-28 12:55:36 +01:00
wlr_pointer_constraints_v1.c pointer-constraints: use proper wayland-scanner functions 2018-09-27 10:53:11 +02:00
wlr_presentation_time.c output: add presentation refresh prediction 2018-10-04 22:00:24 +02:00
wlr_region.c compositor: redesign how resources are managed 2018-04-26 17:51:06 +01:00
wlr_screencopy_v1.c output: add wlr_output_preferred_read_format() 2018-11-24 10:54:25 +01:00
wlr_screenshooter.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_server_decoration.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_surface.c surface: fix destroyed subsurfaces handling 2018-11-26 23:17:52 +01:00
wlr_tablet_pad.c Use wlr_list for paths, and improve inert resource handling 2018-07-14 09:43:17 +02:00
wlr_tablet_tool.c rename wlr_tablet_tool to wlr_tablet 2018-07-14 09:49:58 +02:00
wlr_text_input_v3.c text-input-v3: remove newline in log message 2018-11-26 12:15:34 +01:00
wlr_touch.c Revert "ELF Visibility" 2018-02-19 18:01:27 -05:00
wlr_virtual_keyboard_v1.c Init the new destroy signals added by #1200 2018-08-27 18:21:36 +02:00
wlr_wl_shell.c Merge pull request #1116 from emersion/surface-role 2018-07-11 15:27:42 -07:00
wlr_xcursor_manager.c Redesign wlr_texture 2018-03-24 23:48:32 -04:00
wlr_xdg_decoration_v1.c Fix a crash on zxdg_decoration_manager_v1 destroy 2018-10-01 14:45:17 +02:00
wlr_xdg_output_v1.c xdg-output: add _v1 suffix 2018-09-14 19:29:08 +02:00