config: add <core><primarySelection>

...to enable/disable primary selection clipboard support. This only works
on launch.

The reason it is useful to be able to disable this is that some clients
(like browsers) support middle-button-click to start scrolling up/down.

With some clients can be disabled via

   gsettings set org.gnome.desktop.interface gtk-enable-primary-paste false

...but for others (like chromium and electron based programs) a compositor
setting is required.

Fixes: #2815
This commit is contained in:
Johan Malm 2025-06-13 20:08:52 +01:00 committed by Johan Malm
parent c63ba3c7fa
commit 145de91932
5 changed files with 15 additions and 1 deletions

View file

@ -73,6 +73,7 @@ struct rcxml {
bool reuse_output_mode;
enum view_placement_policy placement_policy;
bool xwayland_persistence;
bool primary_selection;
int placement_cascade_offset_x;
int placement_cascade_offset_y;