Skip to content

Commit

Permalink
WIP Ei protocol support
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed May 9, 2024
1 parent edf46f5 commit 5aa972c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ inherits = "release"
lto = "fat"

[patch."https://github.com/Smithay/smithay.git"]
smithay = {git = "https://github.com/smithay//smithay", rev = "64356be"}
# smithay = {git = "https://github.com/smithay//smithay", rev = "64356be"}
smithay = {git = "https://github.com/ids1024/smithay", branch = "reis"}
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub mod dbus;
#[cfg(feature = "debug")]
pub mod debug;
pub mod input;
pub mod libei;
mod logger;
pub mod session;
pub mod shell;
Expand Down Expand Up @@ -107,6 +108,8 @@ fn main() -> Result<()> {
// init backend
backend::init_backend_auto(&display, &mut event_loop, &mut state)?;

libei::listen_eis(&event_loop.handle());

if let Err(err) = theme::watch_theme(event_loop.handle()) {
warn!(?err, "Failed to watch theme");
}
Expand Down
4 changes: 4 additions & 0 deletions src/shell/seats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ impl Seats {

pub fn for_device<D: Device>(&self, device: &D) -> Option<&Seat<State>> {
self.iter().find(|seat| {
// XXX
/*
let userdata = seat.user_data();
let devices = userdata.get::<Devices>().unwrap();
devices.has_device(device)
*/
true
})
}
}
Expand Down

0 comments on commit 5aa972c

Please sign in to comment.