slight changes to hopefully make everything work

This commit is contained in:
Akshat Deshpande 2022-07-06 09:42:50 +05:30
parent a0c77a3647
commit 8c3accec43
3 changed files with 4 additions and 2 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
* text=auto

View file

@ -193,7 +193,7 @@ async fn process_event<Dpy: AsyncDisplay + ?Sized>(
}
Event::ButtonPress(ev) => {
dbg!(&ev);
if ev.detail == 1 {
if ev.detail == 1 && manager.has_client(ev.event) {
manager.set_focus(conn, ev.event).await?;
}
}

View file

@ -874,7 +874,8 @@ async fn frame<Dpy: AsyncDisplay + ?Sized>(conn: &mut Dpy, win: Window) -> Resul
| EventMask::KEY_RELEASE
| EventMask::ENTER_WINDOW
| EventMask::LEAVE_WINDOW,
);
)
.await?;
may_not_exist(win.change_save_set_async(conn, SetMode::Insert).await)?;