autocommit 2022-04-05 18:28:42 CEST
This commit is contained in:
parent
1f05ea431e
commit
a3e9f21fc5
29 changed files with 568 additions and 225 deletions
|
|
@ -1,6 +1,6 @@
|
|||
mod handler;
|
||||
|
||||
use crate::backend::InputDeviceId;
|
||||
use crate::backend::{ConnectorId, InputDeviceId};
|
||||
use crate::config::handler::ConfigProxyHandler;
|
||||
use crate::ifs::wl_seat::SeatId;
|
||||
use crate::state::State;
|
||||
|
|
@ -8,6 +8,7 @@ use crate::utils::numcell::NumCell;
|
|||
use crate::utils::ptr_ext::PtrExt;
|
||||
use jay_config::_private::ipc::{InitMessage, ServerMessage, V1InitMessage};
|
||||
use jay_config::_private::{bincode_ops, ConfigEntry, VERSION};
|
||||
use jay_config::drm::Connector;
|
||||
use jay_config::input::InputDevice;
|
||||
use jay_config::keyboard::ModifiedKeySym;
|
||||
use jay_config::Seat;
|
||||
|
|
@ -38,6 +39,30 @@ impl ConfigProxy {
|
|||
});
|
||||
}
|
||||
|
||||
pub fn new_connector(&self, connector: ConnectorId) {
|
||||
self.handler.send(&ServerMessage::NewConnector {
|
||||
device: Connector(connector.raw() as _),
|
||||
});
|
||||
}
|
||||
|
||||
pub fn del_connector(&self, connector: ConnectorId) {
|
||||
self.handler.send(&ServerMessage::DelConnector {
|
||||
device: Connector(connector.raw() as _),
|
||||
});
|
||||
}
|
||||
|
||||
pub fn connector_connected(&self, connector: ConnectorId) {
|
||||
self.handler.send(&ServerMessage::ConnectorConnect {
|
||||
device: Connector(connector.raw() as _),
|
||||
});
|
||||
}
|
||||
|
||||
pub fn connector_disconnected(&self, connector: ConnectorId) {
|
||||
self.handler.send(&ServerMessage::ConnectorDisconnect {
|
||||
device: Connector(connector.raw() as _),
|
||||
});
|
||||
}
|
||||
|
||||
pub fn new_input_device(&self, dev: InputDeviceId) {
|
||||
self.handler.send(&ServerMessage::NewInputDevice {
|
||||
device: InputDevice(dev.raw() as _),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue