linux: only tick the main thread tasks and one at a time in the event loop
This commit is contained in:
parent
f92be4b817
commit
1c410c1b99
3 changed files with 10 additions and 4 deletions
|
@ -3,9 +3,8 @@
|
|||
use crate::{
|
||||
Action, AnyWindowHandle, BackgroundExecutor, Bounds, ClipboardItem, CursorStyle, DisplayId,
|
||||
ForegroundExecutor, Keymap, LinuxDispatcher, LinuxDisplay, LinuxTextSystem, LinuxWindow,
|
||||
LinuxWindowState, Menu, PathPromptOptions, Platform, PlatformDispatcher as _, PlatformDisplay,
|
||||
PlatformInput, PlatformTextSystem, PlatformWindow, Point, Result, SemanticVersion, Size, Task,
|
||||
WindowOptions,
|
||||
LinuxWindowState, Menu, PathPromptOptions, Platform, PlatformDisplay, PlatformInput,
|
||||
PlatformTextSystem, PlatformWindow, Point, Result, SemanticVersion, Size, Task, WindowOptions,
|
||||
};
|
||||
|
||||
use collections::{HashMap, HashSet};
|
||||
|
@ -121,7 +120,7 @@ impl Platform for LinuxPlatform {
|
|||
}
|
||||
_ => {}
|
||||
}
|
||||
self.0.lock().dispatcher.tick(false);
|
||||
self.0.lock().dispatcher.tick_main();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue