On X11, extract event handlers
Make code more clear wrt explicit returns during event handling, which may lead to skipped IME event handling.
This commit is contained in:
parent
dbe0f852da
commit
273984a385
6 changed files with 1400 additions and 1349 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue