Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nferhat authored and Drakulix committed Apr 25, 2024
1 parent cf2b307 commit f3e442c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/backend/x11/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,23 @@ impl X11Inner {

match event {
x11::Event::FocusIn(focus_in) => {
callback(Focus { focused: true, window_id: focus_in.event }, &mut ());
callback(
Focus {
focused: true,
window_id: focus_in.event,
},
&mut (),
);
}

x11::Event::FocusOut(focus_out) => {
callback(Focus { focused: false, window_id: focus_out.event }, &mut ());
callback(
Focus {
focused: false,
window_id: focus_out.event,
},
&mut (),
);
}

x11::Event::ButtonPress(button_press) => {
Expand Down Expand Up @@ -725,7 +737,7 @@ impl X11Inner {
window,
},
},
window_id: Some(button_press.event)
window_id: Some(button_press.event),
},
&mut (),
)
Expand Down Expand Up @@ -831,7 +843,7 @@ impl X11Inner {
window,
},
},
window_id: Some(key_release.event)
window_id: Some(key_release.event),
},
&mut (),
);
Expand Down

0 comments on commit f3e442c

Please sign in to comment.