mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 13:25:58 +01:00
f001f98cef
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 |
||
---|---|---|
.. | ||
meson.build | ||
wlr_box.h | ||
wlr_buffer.h | ||
wlr_compositor.h | ||
wlr_cursor.h | ||
wlr_data_device.h | ||
wlr_export_dmabuf_v1.h | ||
wlr_gamma_control.h | ||
wlr_gamma_control_v1.h | ||
wlr_gtk_primary_selection.h | ||
wlr_idle.h | ||
wlr_idle_inhibit_v1.h | ||
wlr_input_device.h | ||
wlr_input_inhibitor.h | ||
wlr_input_method_v2.h | ||
wlr_keyboard.h | ||
wlr_layer_shell_v1.h | ||
wlr_linux_dmabuf_v1.h | ||
wlr_list.h | ||
wlr_matrix.h | ||
wlr_output.h | ||
wlr_output_damage.h | ||
wlr_output_layout.h | ||
wlr_pointer.h | ||
wlr_pointer_constraints_v1.h | ||
wlr_presentation_time.h | ||
wlr_region.h | ||
wlr_screencopy_v1.h | ||
wlr_screenshooter.h | ||
wlr_seat.h | ||
wlr_server_decoration.h | ||
wlr_surface.h | ||
wlr_tablet_pad.h | ||
wlr_tablet_tool.h | ||
wlr_tablet_v2.h | ||
wlr_text_input_v3.h | ||
wlr_touch.h | ||
wlr_virtual_keyboard_v1.h | ||
wlr_wl_shell.h | ||
wlr_xcursor_manager.h | ||
wlr_xdg_decoration_v1.h | ||
wlr_xdg_output_v1.h | ||
wlr_xdg_shell.h | ||
wlr_xdg_shell_v6.h |