Commit bbb50b4f27f7
tarball1 file changed+15-0
@@ -42,6 +42,21 @@ impl Cursor {
4242
if cursor.image(CursorIcon::Default).is_none() {4343
tracing::warn!(theme, "no xcursor theme found, drawing a plain cursor");4444
}45
+ // Reading a shape from the theme takes milliseconds, which in a frame46
+ // makes it miss, so the ones clients ask for most load up front.47
+ for icon in [48
+ CursorIcon::Text,49
+ CursorIcon::Pointer,50
+ CursorIcon::Grab,51
+ CursorIcon::Grabbing,52
+ CursorIcon::NotAllowed,53
+ CursorIcon::Wait,54
+ CursorIcon::Progress,55
+ CursorIcon::EwResize,56
+ CursorIcon::NsResize,57
+ ] {58
+ cursor.image(icon);59
+ }4560
cursor4661
}