mirror of
https://github.com/danbulant/appit
synced 2026-07-04 10:30:47 +00:00
Registering xdg before starting winit
This commit is contained in:
parent
95fc2c6744
commit
6869fcf3be
1 changed files with 4 additions and 2 deletions
|
|
@ -229,6 +229,10 @@ where
|
||||||
on_startup,
|
on_startup,
|
||||||
pending_windows,
|
pending_windows,
|
||||||
} = self;
|
} = self;
|
||||||
|
|
||||||
|
#[cfg(all(target_os = "linux", feature = "xdg"))]
|
||||||
|
xdg::observe_darkmode_changes(event_loop.create_proxy());
|
||||||
|
|
||||||
event_loop.run_app(&mut RunningApp::<AppMessage> {
|
event_loop.run_app(&mut RunningApp::<AppMessage> {
|
||||||
message_callback,
|
message_callback,
|
||||||
running,
|
running,
|
||||||
|
|
@ -256,8 +260,6 @@ where
|
||||||
let StartCause::Init = cause else {
|
let StartCause::Init = cause else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
#[cfg(all(target_os = "linux", feature = "xdg"))]
|
|
||||||
self.observe_darkmode_changes(event_loop.proxy());
|
|
||||||
self.running.started.store(true, Ordering::Relaxed);
|
self.running.started.store(true, Ordering::Relaxed);
|
||||||
for PendingWindow {
|
for PendingWindow {
|
||||||
window,
|
window,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue