wlroots-hyprland/include/wlr/types
Manuel Stoeckl edb30a6828 Implement serial validation for selection requests
This change tracks, for each wlr_seat_client, the most recent serial
numbers which were sent to the client. When the client makes a
selection request, wlroots now verifies that the serial number
associated with the selection request was actually provided to that
specific client. This ensures that the client that was most
recently interacted with always has priority for its copy selection
requests, and that no other clients can incorrectly use a larger serial
value and "steal" the role of having the copy selection.

Also, the code used to determine when a given selection is superseded
by a newer request uses < instead of <= to allow clients to make
multiple selection requests with the same serial number and have the
last one hold.

To limit memory use, a ring buffer is used to store runs of sequential
serial numbers, and all serial numbers earlier than the start of the
ring buffer are assumed to be valid. Faking very old serials is
unlikely to be disruptive.

Assuming all clients are correctly written, the only additional
constraint which this patch should impose is that serial numbers
are now bound to seats: clients may not receive a serial number
from an input event on one seat and then use that to request
copy-selection on another seat.
2019-06-30 15:01:05 -04:00
..
meson.build Remove orbital screenshooter and gamma-control 2019-06-02 09:30:47 -04:00
wlr_box.h Standardize the wlr_box input paramaters 2018-12-21 13:56:10 -05:00
wlr_buffer.h buffer: add wlr_buffer_get_dmabuf 2019-06-07 09:06:11 -04:00
wlr_compositor.h surface: fix destroyed subsurfaces handling 2018-11-26 23:17:52 +01:00
wlr_cursor.h Unbreak build with '-Wstrict-prototypes' 2019-02-28 16:41:23 +01:00
wlr_data_control_v1.h data-control: add primary selection support 2019-02-10 17:12:05 +01:00
wlr_data_device.h Implement serial validation for selection requests 2019-06-30 15:01:05 -04:00
wlr_export_dmabuf_v1.h output: rename swap_buffers event to precommit 2019-04-23 14:34:30 -06:00
wlr_foreign_toplevel_management_v1.h foreign-toplevel: support fullscreen state and request 2019-04-29 00:00:53 +03:00
wlr_fullscreen_shell_v1.h fullscreen-shell-v1: initial protocol implementation 2019-01-06 12:12:06 +01:00
wlr_gamma_control_v1.h Add destroy signals to types that are destroyed by wl_display_destroy 2018-08-26 23:23:12 +02:00
wlr_gtk_primary_selection.h Deprecate old protocols 2019-02-09 19:57:10 +01:00
wlr_idle.h idle: enable the compositors to add custom idle timeouts (#1655) 2019-04-17 08:48:43 +03:00
wlr_idle_inhibit_v1.h Add destroy signals to types that are destroyed by wl_display_destroy 2018-08-26 23:23:12 +02:00
wlr_input_device.h s/lid_switch/switch_device 2019-03-19 22:45:58 -04:00
wlr_input_inhibitor.h Add destroy signals to types that are destroyed by wl_display_destroy 2018-08-26 23:23:12 +02:00
wlr_input_method_v2.h input-method-v2: fix include guard name 2018-10-12 19:58:12 +02:00
wlr_keyboard.h Send unique keymap file descriptors 2018-09-18 13:58:36 +05:30
wlr_layer_shell_v1.h layer-shell: add _v1 suffix 2018-09-14 19:32:33 +02:00
wlr_linux_dmabuf_v1.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_list.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_matrix.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_output.h output: introduce wlr_output_lock_attach_render 2019-06-07 09:06:11 -04:00
wlr_output_damage.h output: disambiguate the two types of damage 2019-04-26 10:08:08 -06:00
wlr_output_layout.h Unbreak build with '-Wstrict-prototypes' 2019-02-28 16:41:23 +01:00
wlr_output_management_v1.h output-management-v1: add more docs 2019-04-11 09:19:57 -06:00
wlr_pointer.h Implement the pointer-gestures-unstable-v1 protocol 2019-01-28 22:06:36 +01:00
wlr_pointer_constraints_v1.h pointer-constraints: add unstable header 2018-09-27 12:39:29 +02:00
wlr_pointer_gestures_v1.h Implement the pointer-gestures-unstable-v1 protocol 2019-01-28 22:06:36 +01:00
wlr_presentation_time.h Rename get_present_clock to get_presentation clock, use it 2018-10-04 22:00:22 +02:00
wlr_primary_selection.h Implement serial validation for selection requests 2019-06-30 15:01:05 -04:00
wlr_primary_selection_v1.h primary-selection-v1: copy from gtk-primary-selection 2019-02-13 19:28:25 +01:00
wlr_region.h Implement pointer-constraints protocol in wlroots and rootston 2018-09-18 10:14:33 +02:00
wlr_relative_pointer_v1.h relative-pointer-v1: time is in usec, not msec 2019-01-30 21:25:42 +01:00
wlr_screencopy_v1.h output: rename swap_buffers event to precommit 2019-04-23 14:34:30 -06:00
wlr_seat.h Implement serial validation for selection requests 2019-06-30 15:01:05 -04:00
wlr_server_decoration.h Deprecate old protocols 2019-02-09 19:57:10 +01:00
wlr_surface.h subsurface: add map/unmap events 2019-02-17 12:01:15 +01:00
wlr_switch.h Working switches in rootston: 2018-12-15 14:42:35 +11:00
wlr_tablet_pad.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_tablet_tool.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_tablet_v2.h Merge pull request #1160 from Ongy/tablet-grabs 2018-09-12 19:01:50 +02:00
wlr_text_input_v3.h wlroots: add support for zwp_text_input_unstable_v3 2018-10-09 09:56:11 +00:00
wlr_touch.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_virtual_keyboard_v1.h virtual_keyboard: Require keymap before accepting keycodes 2019-06-24 17:16:37 +03:00
wlr_xcursor_manager.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
wlr_xdg_decoration_v1.h Add destroy signals to types that are destroyed by wl_display_destroy 2018-08-26 23:23:12 +02:00
wlr_xdg_output_v1.h xdg-output: add _v1 suffix 2018-09-14 19:29:08 +02:00
wlr_xdg_shell.h wlr_xdg_toplevel: store pending fullscreen output 2019-03-27 10:04:10 +02:00
wlr_xdg_shell_v6.h wlr_xdg_toplevel_v6: store pending fullscreen output 2019-03-27 10:04:10 +02:00