locale: replace context_get_x11_context() with context_get_x11_context_safe()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Jan 2023 08:34:08 +0000 (17:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Jan 2023 05:47:36 +0000 (14:47 +0900)
commitf59d83afaab95a60998428579da505144cc4906d
tree7eea18549b27f5cc81b910b84db9df095ee28eaa
parent90005a4f0a2c0a229e2356fb75cc75ea538503d3
locale: replace context_get_x11_context() with context_get_x11_context_safe()

Then, context_get_x11_context() always replies a valid X11 context.
No functional change, just refactoring.
src/locale/localed-util.c
src/locale/localed-util.h
src/locale/localed.c