fix a use-after-free Prevent a use-after-free when closing a nested dwl with Ctrl+c. It happened because cleanup() → input_method_relay_finish() frees input_method_relay, and then closemon() → focusclient() → input_method_relay_set_focus() uses relay->surface.
add IME support Based on mangowm, which is based on labwc, which is based on sway, so this should be covered by LICENSE.sway. Fixes https://codeberg.org/dwl/dwl/issues/6 Fixes https://codeberg.org/dwl/dwl/issues/710 Fixes https://codeberg.org/dwl/dwl/issues/1176 Fixes https://codeberg.org/dwl/dwl/issues/1185 Co-authored-by: DreamMaoMao <2523610504@qq.com>