the final commit

I still have to add not crashing when there are no windows left (although it seems that only happens sometimes)

I also have to add a few just-in-cases like completely discarding mod2 in the ModMask (a very difficult thing to do), as well as  moving some functions around and commenting, but in most cases, xcrab should work!
This commit is contained in:
Akshat Deshpande 2022-08-01 19:54:02 -05:00
parent 464f57f91d
commit cfc0334515

View file

@ -171,6 +171,8 @@ async fn main() -> Result<()> {
}
}
mask.set_Two(true);
conn.exchange_request_async(GrabKeyRequest {
req_type: 33,
owner_events: false,
@ -254,7 +256,7 @@ async fn process_event<Dpy: AsyncDisplay + ?Sized>(
if let Some(k) = keyboard_state.process_keycode(ev.detail, ev.state) {
if let Some(c) = k.as_char() {
for (&bind, action) in &CONFIG.binds {
if bind.key == c && bind.mods.inner == 20 {
if bind.key == c {
action.eval(manager, conn).await?;
}
}