Skip to content

Commit

Permalink
On X11, extract event handlers
Browse files Browse the repository at this point in the history
Make code more clear wrt explicit returns during event handling,
which may lead to skipped IME event handling.
  • Loading branch information
kchibisov committed Feb 9, 2024
1 parent 681b9ca commit 8a8f95b
Show file tree
Hide file tree
Showing 2 changed files with 1,370 additions and 1,319 deletions.
2 changes: 2 additions & 0 deletions src/platform_impl/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,12 @@ impl EventLoopWindowTarget {
}
}

#[allow(dead_code)]
fn set_exit_code(&self, code: i32) {
x11_or_wayland!(match self; Self(evlp) => evlp.set_exit_code(code))
}

#[allow(dead_code)]
fn exit_code(&self) -> Option<i32> {
x11_or_wayland!(match self; Self(evlp) => evlp.exit_code())
}
Expand Down
Loading

0 comments on commit 8a8f95b

Please sign in to comment.