bugfix: Reload Xft database on DPI change

Closes #1228
This commit is contained in:
John Nunley
2023-12-25 21:25:55 -08:00
committed by Kirill Chibisov
parent 572d61f9ba
commit b343f45500
2 changed files with 16 additions and 5 deletions

View File

@@ -1413,6 +1413,9 @@ impl<T: 'static> EventProcessor<T> {
F: FnMut(Event<T>),
{
let wt = get_xtarget(&self.target);
wt.xconn
.reload_database()
.expect("failed to reload Xft database");
// In the future, it would be quite easy to emit monitor hotplug events.
let prev_list = {