forked from InfoshockTech/xcrab
slight changes to hopefully make everything work
This commit is contained in:
parent
a0c77a3647
commit
8c3accec43
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
* text=auto
|
|
@ -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?;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue