SIGUSR1 to trigger fcitx layout change

This commit is contained in:
galister
2025-12-15 16:13:45 +09:00
parent 12e5749bda
commit 1077d2606d
9 changed files with 656 additions and 121 deletions

View File

@@ -50,6 +50,7 @@ pub struct GuiPanel<S> {
pub max_size: Vec2,
pub gui_scale: f32,
pub on_notify: Option<OnNotifyFunc<S>>,
pub initialized: bool,
interaction_transform: Option<Affine2>,
context: WguiContext,
timestep: Timestep,
@@ -165,6 +166,7 @@ impl<S: 'static> GuiPanel<S> {
interaction_transform: None,
on_notify: None,
gui_scale: params.gui_scale,
initialized: false,
})
}
@@ -194,6 +196,7 @@ impl<S: 'static> GuiPanel<S> {
on_notify: None,
interaction_transform: None,
gui_scale: params.gui_scale,
initialized: false,
})
}
@@ -230,6 +233,7 @@ impl<S: 'static> OverlayBackend for GuiPanel<S> {
self.layout.content_size.x as _,
self.layout.content_size.y as _,
]));
self.initialized = true;
}
Ok(())
}