config: allow disabling the primary selection
This commit is contained in:
parent
e70be28e22
commit
9c165ab56c
13 changed files with 63 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ use {
|
|||
},
|
||||
leaks::Tracker,
|
||||
object::{Object, Version},
|
||||
state::State,
|
||||
wire::{ZwpPrimarySelectionDeviceManagerV1Id, zwp_primary_selection_device_manager_v1::*},
|
||||
},
|
||||
std::rc::Rc,
|
||||
|
|
@ -96,6 +97,10 @@ impl Global for ZwpPrimarySelectionDeviceManagerV1Global {
|
|||
fn version(&self) -> u32 {
|
||||
1
|
||||
}
|
||||
|
||||
fn exposed(&self, state: &State) -> bool {
|
||||
state.enable_primary_selection.get()
|
||||
}
|
||||
}
|
||||
|
||||
simple_add_global!(ZwpPrimarySelectionDeviceManagerV1Global);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue