1
0
Fork 0
forked from wry/wry

config: allow disabling the primary selection

This commit is contained in:
Julian Orth 2025-07-20 11:18:32 +02:00
parent e70be28e22
commit 9c165ab56c
13 changed files with 63 additions and 2 deletions

View file

@ -2204,6 +2204,10 @@ impl ConfigProxyHandler {
Ok(())
}
fn handle_set_middle_click_paste_enabled(&self, enabled: bool) {
self.state.enable_primary_selection.set(enabled);
}
fn spaces_change(&self) {
struct V;
impl NodeVisitorBase for V {
@ -3064,6 +3068,9 @@ impl ConfigProxyHandler {
ClientMessage::SeatFocusTiles { seat } => {
self.handle_seat_focus_tiles(seat).wrn("seat_focus_tiles")?
}
ClientMessage::SetMiddleClickPasteEnabled { enabled } => {
self.handle_set_middle_click_paste_enabled(enabled)
}
}
Ok(())
}