forge
Explore
Log in

Don't you dare go Hollow

6a9ed5bc7c7afc53ae50773b49e73e7ffa6855d5Patrick GaskinParent: dd75865
- ext-foreign-toplevel-list
- input event time
- misc bugfixes and refactors
Cargo.lockmodified+312 -41
@@ -66,7 +66,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
66 checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"66 checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
67 dependencies = [67 dependencies = [
68 "cfg-if",68 "cfg-if",
69- "getrandom 0.3.4",
70 "once_cell",69 "once_cell",
71 "version_check",70 "version_check",
72 "zerocopy",71 "zerocopy",
@@ -872,6 +871,17 @@ dependencies = [
872 "objc2",871 "objc2",
873 ]872 ]
874 873
874+[[package]]
875+name = "displaydoc"
876+version = "0.2.7"
877+source = "registry+https://github.com/rust-lang/crates.io-index"
878+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
879+dependencies = [
880+ "proc-macro2",
881+ "quote",
882+ "syn 3.0.3",
883+]
884+
875 [[package]]885 [[package]]
876 name = "dlib"886 name = "dlib"
877 version = "0.5.3"887 version = "0.5.3"
@@ -1067,6 +1077,15 @@ version = "0.2.0"
1067 source = "registry+https://github.com/rust-lang/crates.io-index"1077 source = "registry+https://github.com/rust-lang/crates.io-index"
1068 checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"1078 checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
1069 1079
1080+[[package]]
1081+name = "form_urlencoded"
1082+version = "1.2.2"
1083+source = "registry+https://github.com/rust-lang/crates.io-index"
1084+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
1085+dependencies = [
1086+ "percent-encoding",
1087+]
1088+
1070 [[package]]1089 [[package]]
1071 name = "futures-channel"1090 name = "futures-channel"
1072 version = "0.3.33"1091 version = "0.3.33"
@@ -1587,6 +1606,109 @@ version = "0.4.3"
1587 source = "registry+https://github.com/rust-lang/crates.io-index"1606 source = "registry+https://github.com/rust-lang/crates.io-index"
1588 checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"1607 checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1589 1608
1609+[[package]]
1610+name = "icu_collections"
1611+version = "2.2.0"
1612+source = "registry+https://github.com/rust-lang/crates.io-index"
1613+checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
1614+dependencies = [
1615+ "displaydoc",
1616+ "potential_utf",
1617+ "utf8_iter",
1618+ "yoke",
1619+ "zerofrom",
1620+ "zerovec",
1621+]
1622+
1623+[[package]]
1624+name = "icu_locale_core"
1625+version = "2.2.0"
1626+source = "registry+https://github.com/rust-lang/crates.io-index"
1627+checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
1628+dependencies = [
1629+ "displaydoc",
1630+ "litemap",
1631+ "tinystr",
1632+ "writeable",
1633+ "zerovec",
1634+]
1635+
1636+[[package]]
1637+name = "icu_normalizer"
1638+version = "2.2.0"
1639+source = "registry+https://github.com/rust-lang/crates.io-index"
1640+checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
1641+dependencies = [
1642+ "icu_collections",
1643+ "icu_normalizer_data",
1644+ "icu_properties",
1645+ "icu_provider",
1646+ "smallvec",
1647+ "zerovec",
1648+]
1649+
1650+[[package]]
1651+name = "icu_normalizer_data"
1652+version = "2.2.0"
1653+source = "registry+https://github.com/rust-lang/crates.io-index"
1654+checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
1655+
1656+[[package]]
1657+name = "icu_properties"
1658+version = "2.2.0"
1659+source = "registry+https://github.com/rust-lang/crates.io-index"
1660+checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
1661+dependencies = [
1662+ "icu_collections",
1663+ "icu_locale_core",
1664+ "icu_properties_data",
1665+ "icu_provider",
1666+ "zerotrie",
1667+ "zerovec",
1668+]
1669+
1670+[[package]]
1671+name = "icu_properties_data"
1672+version = "2.2.0"
1673+source = "registry+https://github.com/rust-lang/crates.io-index"
1674+checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
1675+
1676+[[package]]
1677+name = "icu_provider"
1678+version = "2.2.0"
1679+source = "registry+https://github.com/rust-lang/crates.io-index"
1680+checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
1681+dependencies = [
1682+ "displaydoc",
1683+ "icu_locale_core",
1684+ "writeable",
1685+ "yoke",
1686+ "zerofrom",
1687+ "zerotrie",
1688+ "zerovec",
1689+]
1690+
1691+[[package]]
1692+name = "idna"
1693+version = "1.1.0"
1694+source = "registry+https://github.com/rust-lang/crates.io-index"
1695+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1696+dependencies = [
1697+ "idna_adapter",
1698+ "smallvec",
1699+ "utf8_iter",
1700+]
1701+
1702+[[package]]
1703+name = "idna_adapter"
1704+version = "1.2.2"
1705+source = "registry+https://github.com/rust-lang/crates.io-index"
1706+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
1707+dependencies = [
1708+ "icu_normalizer",
1709+ "icu_properties",
1710+]
1711+
1590 [[package]]1712 [[package]]
1591 name = "indexmap"1713 name = "indexmap"
1592 version = "2.14.0"1714 version = "2.14.0"
@@ -1910,7 +2032,7 @@ dependencies = [
1910 "bitflags",2032 "bitflags",
1911 "libc",2033 "libc",
1912 "plain",2034 "plain",
1913- "redox_syscall 0.9.1",2035+ "redox_syscall",
1914 ]2036 ]
1915 2037
1916 [[package]]2038 [[package]]
@@ -1988,6 +2110,12 @@ version = "0.12.1"
1988 source = "registry+https://github.com/rust-lang/crates.io-index"2110 source = "registry+https://github.com/rust-lang/crates.io-index"
1989 checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"2111 checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
1990 2112
2113+[[package]]
2114+name = "litemap"
2115+version = "0.8.3"
2116+source = "registry+https://github.com/rust-lang/crates.io-index"
2117+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
2118+
1991 [[package]]2119 [[package]]
1992 name = "log"2120 name = "log"
1993 version = "0.4.33"2121 version = "0.4.33"
@@ -2396,11 +2524,10 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
2396 2524
2397 [[package]]2525 [[package]]
2398 name = "orbclient"2526 name = "orbclient"
2399-version = "0.3.55"2527+version = "0.4.6"
2400 source = "registry+https://github.com/rust-lang/crates.io-index"2528 source = "registry+https://github.com/rust-lang/crates.io-index"
2401-checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747"2529+checksum = "01f140a738f180203d7912dfd369936fff2fb0ad6f426c0aa007ed3e2b443e6b"
2402 dependencies = [2530 dependencies = [
2403- "libc",
2404 "libredox",2531 "libredox",
2405 ]2532 ]
2406 2533
@@ -2667,6 +2794,15 @@ version = "1.14.0"
2667 source = "registry+https://github.com/rust-lang/crates.io-index"2794 source = "registry+https://github.com/rust-lang/crates.io-index"
2668 checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"2795 checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
2669 2796
2797+[[package]]
2798+name = "potential_utf"
2799+version = "0.1.6"
2800+source = "registry+https://github.com/rust-lang/crates.io-index"
2801+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
2802+dependencies = [
2803+ "zerovec",
2804+]
2805+
2670 [[package]]2806 [[package]]
2671 name = "ppv-lite86"2807 name = "ppv-lite86"
2672 version = "0.2.21"2808 version = "0.2.21"
@@ -2896,12 +3032,13 @@ dependencies = [
2896 ]3032 ]
2897 3033
2898 [[package]]3034 [[package]]
2899-name = "redox_syscall"3035+name = "redox_event"
2900-version = "0.5.18"3036+version = "0.4.8"
2901 source = "registry+https://github.com/rust-lang/crates.io-index"3037 source = "registry+https://github.com/rust-lang/crates.io-index"
2902-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"3038+checksum = "c5018d583d6d2f5499352aea8d177e9067d1eb03ab17c78169d5ba7a30001b15"
2903 dependencies = [3039 dependencies = [
2904 "bitflags",3040 "bitflags",
3041+ "libredox",
2905 ]3042 ]
2906 3043
2907 [[package]]3044 [[package]]
@@ -3270,7 +3407,7 @@ checksum = "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100"
3270 [[package]]3407 [[package]]
3271 name = "smithay"3408 name = "smithay"
3272 version = "0.7.0"3409 version = "0.7.0"
3273-source = "git+https://github.com/Smithay/smithay.git?rev=4cf0b62028039661477d482ec4758b687d8f4392#4cf0b62028039661477d482ec4758b687d8f4392"3410+source = "git+https://github.com/Smithay/smithay.git?rev=0ff00983b6007257a7a161a4fe8b14a778e2ac8f#0ff00983b6007257a7a161a4fe8b14a778e2ac8f"
3274 dependencies = [3411 dependencies = [
3275 "aliasable",3412 "aliasable",
3276 "appendlist",3413 "appendlist",
@@ -3321,20 +3458,18 @@ dependencies = [
3321 3458
3322 [[package]]3459 [[package]]
3323 name = "smithay-client-toolkit"3460 name = "smithay-client-toolkit"
3324-version = "0.20.0"3461+version = "0.21.1"
3325 source = "registry+https://github.com/rust-lang/crates.io-index"3462 source = "registry+https://github.com/rust-lang/crates.io-index"
3326-checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"3463+checksum = "74dc9ee14b0fdcb535f9556141bacac070c994a977d2240ee455d7438a617f00"
3327 dependencies = [3464 dependencies = [
3328 "bitflags",3465 "bitflags",
3329 "calloop",3466 "calloop",
3330 "calloop-wayland-source",3467 "calloop-wayland-source",
3331 "cursor-icon",3468 "cursor-icon",
3332- "libc",
3333 "log",3469 "log",
3334 "memmap2",3470 "memmap2",
3335 "rustix 1.1.4",3471 "rustix 1.1.4",
3336 "thiserror 2.0.20",3472 "thiserror 2.0.20",
3337- "wayland-backend",
3338 "wayland-client",3473 "wayland-client",
3339 "wayland-csd-frame",3474 "wayland-csd-frame",
3340 "wayland-cursor",3475 "wayland-cursor",
@@ -3349,7 +3484,7 @@ dependencies = [
3349 [[package]]3484 [[package]]
3350 name = "smithay-drm-extras"3485 name = "smithay-drm-extras"
3351 version = "0.1.0"3486 version = "0.1.0"
3352-source = "git+https://github.com/Smithay/smithay.git?rev=4cf0b62028039661477d482ec4758b687d8f4392#4cf0b62028039661477d482ec4758b687d8f4392"3487+source = "git+https://github.com/Smithay/smithay.git?rev=0ff00983b6007257a7a161a4fe8b14a778e2ac8f#0ff00983b6007257a7a161a4fe8b14a778e2ac8f"
3353 dependencies = [3488 dependencies = [
3354 "drm",3489 "drm",
3355 "libdisplay-info",3490 "libdisplay-info",
@@ -3365,6 +3500,12 @@ dependencies = [
3365 "serde",3500 "serde",
3366 ]3501 ]
3367 3502
3503+[[package]]
3504+name = "stable_deref_trait"
3505+version = "1.2.1"
3506+source = "registry+https://github.com/rust-lang/crates.io-index"
3507+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
3508+
3368 [[package]]3509 [[package]]
3369 name = "static_assertions"3510 name = "static_assertions"
3370 version = "1.1.0"3511 version = "1.1.0"
@@ -3438,6 +3579,17 @@ dependencies = [
3438 "unicode-ident",3579 "unicode-ident",
3439 ]3580 ]
3440 3581
3582+[[package]]
3583+name = "synstructure"
3584+version = "0.13.2"
3585+source = "registry+https://github.com/rust-lang/crates.io-index"
3586+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
3587+dependencies = [
3588+ "proc-macro2",
3589+ "quote",
3590+ "syn 2.0.119",
3591+]
3592+
3441 [[package]]3593 [[package]]
3442 name = "system-deps"3594 name = "system-deps"
3443 version = "7.0.8"3595 version = "7.0.8"
@@ -3540,6 +3692,16 @@ dependencies = [
3540 "cfg-if",3692 "cfg-if",
3541 ]3693 ]
3542 3694
3695+[[package]]
3696+name = "tinystr"
3697+version = "0.8.4"
3698+source = "registry+https://github.com/rust-lang/crates.io-index"
3699+checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
3700+dependencies = [
3701+ "displaydoc",
3702+ "zerovec",
3703+]
3704+
3543 [[package]]3705 [[package]]
3544 name = "toml"3706 name = "toml"
3545 version = "1.1.4+spec-1.1.0"3707 version = "1.1.4+spec-1.1.0"
@@ -3748,6 +3910,24 @@ version = "0.2.2"
3748 source = "registry+https://github.com/rust-lang/crates.io-index"3910 source = "registry+https://github.com/rust-lang/crates.io-index"
3749 checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"3911 checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
3750 3912
3913+[[package]]
3914+name = "url"
3915+version = "2.5.8"
3916+source = "registry+https://github.com/rust-lang/crates.io-index"
3917+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
3918+dependencies = [
3919+ "form_urlencoded",
3920+ "idna",
3921+ "percent-encoding",
3922+ "serde",
3923+]
3924+
3925+[[package]]
3926+name = "utf8_iter"
3927+version = "1.0.4"
3928+source = "registry+https://github.com/rust-lang/crates.io-index"
3929+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
3930+
3751 [[package]]3931 [[package]]
3752 name = "utf8parse"3932 name = "utf8parse"
3753 version = "0.2.2"3933 version = "0.2.2"
@@ -3945,9 +4125,9 @@ dependencies = [
3945 4125
3946 [[package]]4126 [[package]]
3947 name = "wayland-protocols-experimental"4127 name = "wayland-protocols-experimental"
3948-version = "20250721.0.1"4128+version = "20251230.0.3"
3949 source = "registry+https://github.com/rust-lang/crates.io-index"4129 source = "registry+https://github.com/rust-lang/crates.io-index"
3950-checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"4130+checksum = "91c6c3e7178e553d093d46999032bc79aafea9dedd71dd702c8ace7bbc25cf13"
3951 dependencies = [4131 dependencies = [
3952 "bitflags",4132 "bitflags",
3953 "wayland-backend",4133 "wayland-backend",
@@ -4251,9 +4431,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
4251 4431
4252 [[package]]4432 [[package]]
4253 name = "winit"4433 name = "winit"
4254-version = "0.31.0-beta.2"4434+version = "0.31.0-beta.3"
4255 source = "registry+https://github.com/rust-lang/crates.io-index"4435 source = "registry+https://github.com/rust-lang/crates.io-index"
4256-checksum = "2879d2854d1a43e48f67322d4bd097afcb6eb8f8f775c8de0260a71aea1df1aa"4436+checksum = "f431156a3e4f0f1b35eaaf37674e55838e3652908c8088f570466274d1902e2b"
4257 dependencies = [4437 dependencies = [
4258 "bitflags",4438 "bitflags",
4259 "cfg_aliases",4439 "cfg_aliases",
@@ -4278,9 +4458,9 @@ dependencies = [
4278 4458
4279 [[package]]4459 [[package]]
4280 name = "winit-android"4460 name = "winit-android"
4281-version = "0.31.0-beta.2"4461+version = "0.31.0-beta.3"
4282 source = "registry+https://github.com/rust-lang/crates.io-index"4462 source = "registry+https://github.com/rust-lang/crates.io-index"
4283-checksum = "51d9c0d2cd93efec3a9f9ad819cfaf0834782403af7c0d248c784ec0c61761df"4463+checksum = "d5d60d944a564986b9311e325334cc22e7e4cf726dd0ff7475fd925404215af4"
4284 dependencies = [4464 dependencies = [
4285 "android-activity",4465 "android-activity",
4286 "bitflags",4466 "bitflags",
@@ -4294,9 +4474,9 @@ dependencies = [
4294 4474
4295 [[package]]4475 [[package]]
4296 name = "winit-appkit"4476 name = "winit-appkit"
4297-version = "0.31.0-beta.2"4477+version = "0.31.0-beta.3"
4298 source = "registry+https://github.com/rust-lang/crates.io-index"4478 source = "registry+https://github.com/rust-lang/crates.io-index"
4299-checksum = "21310ca07851a49c348e0c2cc768e36b52ca65afda2c2354d78ed4b90074d8aa"4479+checksum = "23343ec0ea7ac6aa72f38009a6ff66fb63bcf6395e0622fba72794d2a762ab42"
4300 dependencies = [4480 dependencies = [
4301 "bitflags",4481 "bitflags",
4302 "block2",4482 "block2",
@@ -4317,13 +4497,16 @@ dependencies = [
4317 4497
4318 [[package]]4498 [[package]]
4319 name = "winit-common"4499 name = "winit-common"
4320-version = "0.31.0-beta.2"4500+version = "0.31.0-beta.3"
4321 source = "registry+https://github.com/rust-lang/crates.io-index"4501 source = "registry+https://github.com/rust-lang/crates.io-index"
4322-checksum = "45375fbac4cbb77260d83a30b1f9d8105880dbac99a9ae97f56656694680ff69"4502+checksum = "e90422ff1c04502aaaac1dad1d099791c2bbb3fbb3f823019e0ce5cdeee04025"
4323 dependencies = [4503 dependencies = [
4504+ "block2",
4505+ "dpi",
4324 "memmap2",4506 "memmap2",
4325 "objc2",4507 "objc2",
4326 "objc2-core-foundation",4508 "objc2-core-foundation",
4509+ "objc2-foundation",
4327 "smol_str",4510 "smol_str",
4328 "tracing",4511 "tracing",
4329 "winit-core",4512 "winit-core",
@@ -4333,9 +4516,9 @@ dependencies = [
4333 4516
4334 [[package]]4517 [[package]]
4335 name = "winit-core"4518 name = "winit-core"
4336-version = "0.31.0-beta.2"4519+version = "0.31.0-beta.3"
4337 source = "registry+https://github.com/rust-lang/crates.io-index"4520 source = "registry+https://github.com/rust-lang/crates.io-index"
4338-checksum = "e4f0ccd7abb43740e2c6124ac7cae7d865ecec74eec63783e8922577ac232583"4521+checksum = "b8af6307236c51847199950c15cf80e0481a250bb96ce9132f5026df4ad3d0f9"
4339 dependencies = [4522 dependencies = [
4340 "bitflags",4523 "bitflags",
4341 "cursor-icon",4524 "cursor-icon",
@@ -4343,20 +4526,22 @@ dependencies = [
4343 "keyboard-types",4526 "keyboard-types",
4344 "raw-window-handle",4527 "raw-window-handle",
4345 "smol_str",4528 "smol_str",
4529+ "url",
4346 "web-time",4530 "web-time",
4347 ]4531 ]
4348 4532
4349 [[package]]4533 [[package]]
4350 name = "winit-orbital"4534 name = "winit-orbital"
4351-version = "0.31.0-beta.2"4535+version = "0.31.0-beta.3"
4352 source = "registry+https://github.com/rust-lang/crates.io-index"4536 source = "registry+https://github.com/rust-lang/crates.io-index"
4353-checksum = "51ea1fb262e7209f265f12bd0cc792c399b14355675e65531e9c8a87db287d46"4537+checksum = "278a8ae837902a3bc95dd2fd696d680da33f32130eecc29905358c9089cf6c50"
4354 dependencies = [4538 dependencies = [
4355 "bitflags",4539 "bitflags",
4356 "dpi",4540 "dpi",
4541+ "libredox",
4357 "orbclient",4542 "orbclient",
4358 "raw-window-handle",4543 "raw-window-handle",
4359- "redox_syscall 0.5.18",4544+ "redox_event",
4360 "smol_str",4545 "smol_str",
4361 "tracing",4546 "tracing",
4362 "winit-core",4547 "winit-core",
@@ -4364,9 +4549,9 @@ dependencies = [
4364 4549
4365 [[package]]4550 [[package]]
4366 name = "winit-uikit"4551 name = "winit-uikit"
4367-version = "0.31.0-beta.2"4552+version = "0.31.0-beta.3"
4368 source = "registry+https://github.com/rust-lang/crates.io-index"4553 source = "registry+https://github.com/rust-lang/crates.io-index"
4369-checksum = "680a356e798837d8eb274d4556e83bceaf81698194e31aafc5cfb8a9f2fab643"4554+checksum = "83315a3ea1739c8466cf23d35e3b0a2cb20c9515d8857666b633afef484740b5"
4370 dependencies = [4555 dependencies = [
4371 "bitflags",4556 "bitflags",
4372 "block2",4557 "block2",
@@ -4385,17 +4570,18 @@ dependencies = [
4385 4570
4386 [[package]]4571 [[package]]
4387 name = "winit-wayland"4572 name = "winit-wayland"
4388-version = "0.31.0-beta.2"4573+version = "0.31.0-beta.3"
4389 source = "registry+https://github.com/rust-lang/crates.io-index"4574 source = "registry+https://github.com/rust-lang/crates.io-index"
4390-checksum = "8ce5afb2ba07da603f84b722c95f9f9396d2cedae3944fb6c0cda4a6f88de545"4575+checksum = "8b64ceed06de0c45886eef05102106abe1413e703384e337bc57c7e95b71f803"
4391 dependencies = [4576 dependencies = [
4392- "ahash",
4393 "bitflags",4577 "bitflags",
4394 "calloop",4578 "calloop",
4395 "cursor-icon",4579 "cursor-icon",
4396 "dpi",4580 "dpi",
4581+ "foldhash",
4397 "libc",4582 "libc",
4398 "memmap2",4583 "memmap2",
4584+ "percent-encoding",
4399 "raw-window-handle",4585 "raw-window-handle",
4400 "rustix 1.1.4",4586 "rustix 1.1.4",
4401 "smithay-client-toolkit",4587 "smithay-client-toolkit",
@@ -4411,9 +4597,9 @@ dependencies = [
4411 4597
4412 [[package]]4598 [[package]]
4413 name = "winit-web"4599 name = "winit-web"
4414-version = "0.31.0-beta.2"4600+version = "0.31.0-beta.3"
4415 source = "registry+https://github.com/rust-lang/crates.io-index"4601 source = "registry+https://github.com/rust-lang/crates.io-index"
4416-checksum = "8c2490a953fb776fbbd5e295d54f1c3847f4f15b6c3929ec53c09acda6487a92"4602+checksum = "f539be45f95cc297bdfb80569aef38d925d64aec4133852a4d3fc5cb3660f1c9"
4417 dependencies = [4603 dependencies = [
4418 "atomic-waker",4604 "atomic-waker",
4419 "bitflags",4605 "bitflags",
@@ -4434,9 +4620,9 @@ dependencies = [
4434 4620
4435 [[package]]4621 [[package]]
4436 name = "winit-win32"4622 name = "winit-win32"
4437-version = "0.31.0-beta.2"4623+version = "0.31.0-beta.3"
4438 source = "registry+https://github.com/rust-lang/crates.io-index"4624 source = "registry+https://github.com/rust-lang/crates.io-index"
4439-checksum = "644ea78af0e858aa3b092e5d1c67c41995a98220c81813f1353b28bc8bb91eaa"4625+checksum = "25fb480c41df01d351f656cbf3ad74013f8a9d22bb5b2dcab59f9167e7a0b6ec"
4440 dependencies = [4626 dependencies = [
4441 "bitflags",4627 "bitflags",
4442 "cursor-icon",4628 "cursor-icon",
@@ -4445,15 +4631,17 @@ dependencies = [
4445 "smol_str",4631 "smol_str",
4446 "tracing",4632 "tracing",
4447 "unicode-segmentation",4633 "unicode-segmentation",
4448- "windows-sys 0.59.0",4634+ "url",
4635+ "windows-sys 0.61.2",
4636+ "winit-common",
4449 "winit-core",4637 "winit-core",
4450 ]4638 ]
4451 4639
4452 [[package]]4640 [[package]]
4453 name = "winit-x11"4641 name = "winit-x11"
4454-version = "0.31.0-beta.2"4642+version = "0.31.0-beta.3"
4455 source = "registry+https://github.com/rust-lang/crates.io-index"4643 source = "registry+https://github.com/rust-lang/crates.io-index"
4456-checksum = "aa5b600756534c7041aa93cd0d244d44b09fca1b89e202bd1cd80dd9f3636c46"4644+checksum = "bb5746cd907e514b7895491a1c6f7d0cb70077f9e16928cd74ae6f987ffd96aa"
4457 dependencies = [4645 dependencies = [
4458 "bitflags",4646 "bitflags",
4459 "bytemuck",4647 "bytemuck",
@@ -4488,6 +4676,12 @@ version = "0.57.1"
4488 source = "registry+https://github.com/rust-lang/crates.io-index"4676 source = "registry+https://github.com/rust-lang/crates.io-index"
4489 checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"4677 checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
4490 4678
4679+[[package]]
4680+name = "writeable"
4681+version = "0.6.4"
4682+source = "registry+https://github.com/rust-lang/crates.io-index"
4683+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
4684+
4491 [[package]]4685 [[package]]
4492 name = "x11-dl"4686 name = "x11-dl"
4493 version = "2.21.0"4687 version = "2.21.0"
@@ -4584,6 +4778,29 @@ version = "1.0.1"
4584 source = "registry+https://github.com/rust-lang/crates.io-index"4778 source = "registry+https://github.com/rust-lang/crates.io-index"
4585 checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"4779 checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
4586 4780
4781+[[package]]
4782+name = "yoke"
4783+version = "0.8.3"
4784+source = "registry+https://github.com/rust-lang/crates.io-index"
4785+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
4786+dependencies = [
4787+ "stable_deref_trait",
4788+ "yoke-derive",
4789+ "zerofrom",
4790+]
4791+
4792+[[package]]
4793+name = "yoke-derive"
4794+version = "0.8.2"
4795+source = "registry+https://github.com/rust-lang/crates.io-index"
4796+checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
4797+dependencies = [
4798+ "proc-macro2",
4799+ "quote",
4800+ "syn 2.0.119",
4801+ "synstructure",
4802+]
4803+
4587 [[package]]4804 [[package]]
4588 name = "zbus"4805 name = "zbus"
4589 version = "5.18.0"4806 version = "5.18.0"
@@ -4701,6 +4918,60 @@ dependencies = [
4701 "syn 2.0.119",4918 "syn 2.0.119",
4702 ]4919 ]
4703 4920
4921+[[package]]
4922+name = "zerofrom"
4923+version = "0.1.8"
4924+source = "registry+https://github.com/rust-lang/crates.io-index"
4925+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
4926+dependencies = [
4927+ "zerofrom-derive",
4928+]
4929+
4930+[[package]]
4931+name = "zerofrom-derive"
4932+version = "0.1.7"
4933+source = "registry+https://github.com/rust-lang/crates.io-index"
4934+checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
4935+dependencies = [
4936+ "proc-macro2",
4937+ "quote",
4938+ "syn 2.0.119",
4939+ "synstructure",
4940+]
4941+
4942+[[package]]
4943+name = "zerotrie"
4944+version = "0.2.5"
4945+source = "registry+https://github.com/rust-lang/crates.io-index"
4946+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
4947+dependencies = [
4948+ "displaydoc",
4949+ "yoke",
4950+ "zerofrom",
4951+]
4952+
4953+[[package]]
4954+name = "zerovec"
4955+version = "0.11.8"
4956+source = "registry+https://github.com/rust-lang/crates.io-index"
4957+checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
4958+dependencies = [
4959+ "yoke",
4960+ "zerofrom",
4961+ "zerovec-derive",
4962+]
4963+
4964+[[package]]
4965+name = "zerovec-derive"
4966+version = "0.11.6"
4967+source = "registry+https://github.com/rust-lang/crates.io-index"
4968+checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
4969+dependencies = [
4970+ "proc-macro2",
4971+ "quote",
4972+ "syn 3.0.3",
4973+]
4974+
4704 [[package]]4975 [[package]]
4705 name = "zmij"4976 name = "zmij"
4706 version = "1.0.23"4977 version = "1.0.23"
Cargo.tomlmodified+2 -2
@@ -28,13 +28,13 @@ tracy-client = { version = "0.18.4", default-features = false }
28 [workspace.dependencies.smithay]28 [workspace.dependencies.smithay]
29 # version = "0.4.1"29 # version = "0.4.1"
30 git = "https://github.com/Smithay/smithay.git"30 git = "https://github.com/Smithay/smithay.git"
31-rev = "4cf0b62028039661477d482ec4758b687d8f4392"31+rev = "0ff00983b6007257a7a161a4fe8b14a778e2ac8f"
32 default-features = false32 default-features = false
33 33
34 [workspace.dependencies.smithay-drm-extras]34 [workspace.dependencies.smithay-drm-extras]
35 # version = "0.1.0"35 # version = "0.1.0"
36 git = "https://github.com/Smithay/smithay.git"36 git = "https://github.com/Smithay/smithay.git"
37-rev = "4cf0b62028039661477d482ec4758b687d8f4392"37+rev = "0ff00983b6007257a7a161a4fe8b14a778e2ac8f"
38 # path = "../smithay/smithay-drm-extras"38 # path = "../smithay/smithay-drm-extras"
39 39
40 [package]40 [package]
src/handlers/mod.rsmodified+3 -7
@@ -39,7 +39,7 @@ use smithay::wayland::keyboard_shortcuts_inhibit::{
39 };39 };
40 use smithay::wayland::output::OutputHandler;40 use smithay::wayland::output::OutputHandler;
41 use smithay::wayland::pointer_constraints::{41 use smithay::wayland::pointer_constraints::{
42- with_pointer_constraint, PointerConstraint, PointerConstraintsHandler,42+ with_pointer_constraint, ConstraintRemove, PointerConstraintsHandler,
43 };43 };
44 use smithay::wayland::security_context::{44 use smithay::wayland::security_context::{
45 SecurityContext, SecurityContextHandler, SecurityContextListenerSource,45 SecurityContext, SecurityContextHandler, SecurityContextListenerSource,
@@ -206,7 +206,7 @@ impl PointerConstraintsHandler for State {
206 &mut self,206 &mut self,
207 _surface: &WlSurface,207 _surface: &WlSurface,
208 pointer: &PointerHandle<Self>,208 pointer: &PointerHandle<Self>,
209- _constraint: Option<&PointerConstraint>,209+ reason: ConstraintRemove,
210 ) {210 ) {
211 // Since a pointer constraint is broken when a surface loses pointer focus, and one surface211 // Since a pointer constraint is broken when a surface loses pointer focus, and one surface
212 // can only have a single pointer constraint at once, assume there can be only one212 // can only have a single pointer constraint at once, assume there can be only one
@@ -219,11 +219,7 @@ impl PointerConstraintsHandler for State {
219 219
220 // If the constraint was broken by the pointer forcibly leaving the surface (e.g. the user220 // If the constraint was broken by the pointer forcibly leaving the surface (e.g. the user
221 // opened the overview), then it doesn't make much sense to warp it.221 // opened the overview), then it doesn't make much sense to warp it.
222- //222+ if matches!(reason, ConstraintRemove::PointerLeave(_)) {
223- // Furthermore, when the constraint is removed as part of the pointer leaving the surface,
224- // this call happens with locked pointer data, and calling set_location() will try to lock
225- // it again and deadlock.
226- if pointer.last_enter().is_none() {
227 return;223 return;
228 }224 }
229 225
src/handlers/xdg_shell.rsmodified+34 -35
@@ -2,6 +2,7 @@ use std::cell::Cell;
2 2
3 use calloop::Interest;3 use calloop::Interest;
4 use niri_config::PresetSize;4 use niri_config::PresetSize;
5+use smithay::backend::input::InputTime;
5 use smithay::desktop::{6 use smithay::desktop::{
6 find_popup_root_surface, get_popup_toplevel_coords, layer_map_for_output, utils, LayerSurface,7 find_popup_root_surface, get_popup_toplevel_coords, layer_map_for_output, utils, LayerSurface,
7 PopupKeyboardGrab, PopupKind, PopupManager, PopupPointerGrab, PopupUngrabStrategy, Window,8 PopupKeyboardGrab, PopupKind, PopupManager, PopupPointerGrab, PopupUngrabStrategy, Window,
@@ -113,33 +114,32 @@ impl XdgShellHandler for State {
113 114
114 // See if this comes from a tablet tool grab.115 // See if this comes from a tablet tool grab.
115 let mut tablet_tool = None;116 let mut tablet_tool = None;
116- self.niri.seat.tablet_seat().with_tools(|tools| {117+ let tools = self.niri.seat.tablet_seat().get_tools();
117- for tool in tools.values() {118+ for tool in tools.values() {
118- let found = tool.with_grab(|grab_serial, grab| {119+ let found = tool.with_grab(|grab_serial, grab| {
119- if grab_serial == serial {120+ if grab_serial == serial {
120- let start_data = grab.start_data();121+ let start_data = grab.start_data();
121- if let Some((focus, _)) = &start_data.focus {122+ if let Some((focus, _)) = &start_data.focus {
122- if focus.id().same_client_as(&wl_surface.id()) {123+ if focus.id().same_client_as(&wl_surface.id()) {
123- // Deny move requests from DnD grabs to work around124+ // Deny move requests from DnD grabs to work around
124- // https://gitlab.gnome.org/GNOME/gtk/-/issues/7113125+ // https://gitlab.gnome.org/GNOME/gtk/-/issues/7113
125- let is_dnd_grab = Self::is_dnd_grab(grab.as_any());126+ let is_dnd_grab = Self::is_dnd_grab(grab.as_any());
126-127+
127- if !is_dnd_grab {128+ if !is_dnd_grab {
128- grab_start_data =129+ grab_start_data =
129- Some(AnyStartData::TabletTool(start_data.clone()));130+ Some(AnyStartData::TabletTool(start_data.clone()));
130- tablet_tool = Some(tool.clone());131+ tablet_tool = Some(tool.clone());
131- return true;132+ return true;
132- }
133 }133 }
134 }134 }
135 }135 }
136- false
137- });
138- if found == Some(true) {
139- break;
140 }136 }
137+ false
138+ });
139+ if found == Some(true) {
140+ break;
141 }141 }
142- });142+ }
143 143
144 let Some(start_data) = grab_start_data else {144 let Some(start_data) = grab_start_data else {
145 return;145 return;
@@ -170,7 +170,7 @@ impl XdgShellHandler for State {
170 }170 }
171 AnyStartData::TabletTool(_) => {171 AnyStartData::TabletTool(_) => {
172 if let Some(grab) = MoveGrab::new(self, start_data, window.clone(), true, None) {172 if let Some(grab) = MoveGrab::new(self, start_data, window.clone(), true, None) {
173- let time = get_monotonic_time().as_millis() as u32;173+ let time = InputTime::now();
174 tablet_tool174 tablet_tool
175 .unwrap()175 .unwrap()
176 .set_grab(self, grab, time, serial, Focus::Clear);176 .set_grab(self, grab, time, serial, Focus::Clear);
@@ -219,21 +219,20 @@ impl XdgShellHandler for State {
219 219
220 // See if this comes from a tablet tool grab.220 // See if this comes from a tablet tool grab.
221 let mut tablet_tool = None;221 let mut tablet_tool = None;
222- self.niri.seat.tablet_seat().with_tools(|tools| {222+ let tools = self.niri.seat.tablet_seat().get_tools();
223- 'outer: for tool in tools.values() {223+ 'outer: for tool in tools.values() {
224- if tool.has_grab(serial) {224+ if tool.has_grab(serial) {
225- if let Some(start_data) = tool.grab_start_data() {225+ if let Some(start_data) = tool.grab_start_data() {
226- if let Some((focus, _)) = &start_data.focus {226+ if let Some((focus, _)) = &start_data.focus {
227- if focus.id().same_client_as(&wl_surface.id()) {227+ if focus.id().same_client_as(&wl_surface.id()) {
228- grab_start_data = Some(AnyStartData::TabletTool(start_data));228+ grab_start_data = Some(AnyStartData::TabletTool(start_data));
229- tablet_tool = Some(tool.clone());229+ tablet_tool = Some(tool.clone());
230- break 'outer;230+ break 'outer;
231- }
232 }231 }
233 }232 }
234 }233 }
235 }234 }
236- });235+ }
237 236
238 let Some(start_data) = grab_start_data else {237 let Some(start_data) = grab_start_data else {
239 return;238 return;
@@ -301,7 +300,7 @@ impl XdgShellHandler for State {
301 }300 }
302 AnyStartData::TabletTool(_) => {301 AnyStartData::TabletTool(_) => {
303 let grab = ResizeGrab::new(start_data, window);302 let grab = ResizeGrab::new(start_data, window);
304- let time = get_monotonic_time().as_millis() as u32;303+ let time = InputTime::now();
305 tablet_tool304 tablet_tool
306 .unwrap()305 .unwrap()
307 .set_grab(self, grab, time, serial, Focus::Clear);306 .set_grab(self, grab, time, serial, Focus::Clear);
src/input/mod.rsmodified+28 -28
@@ -417,7 +417,7 @@ impl State {
417 let mod_key = self.backend.mod_key(&self.niri.config.borrow());417 let mod_key = self.backend.mod_key(&self.niri.config.borrow());
418 418
419 let serial = SERIAL_COUNTER.next_serial();419 let serial = SERIAL_COUNTER.next_serial();
420- let time = Event::time_msec(&event);420+ let time = Event::time(&event);
421 let pressed = event.state() == KeyState::Pressed;421 let pressed = event.state() == KeyState::Pressed;
422 422
423 // Stop bind key repeat on any release. This won't work 100% correctly in cases like:423 // Stop bind key repeat on any release. This won't work 100% correctly in cases like:
@@ -447,7 +447,7 @@ impl State {
447 #[cfg(feature = "dbus")]447 #[cfg(feature = "dbus")]
448 let block = {448 let block = {
449 let block = self.a11y_process_key(449 let block = self.a11y_process_key(
450- Duration::from_millis(u64::from(time)),450+ Duration::from_micros(time.micros()),
451 event.key_code(),451 event.key_code(),
452 event.state(),452 event.state(),
453 );453 );
@@ -2496,7 +2496,7 @@ impl State {
2496 &RelativeMotionEvent {2496 &RelativeMotionEvent {
2497 delta: event.delta(),2497 delta: event.delta(),
2498 delta_unaccel: event.delta_unaccel(),2498 delta_unaccel: event.delta_unaccel(),
2499- utime: event.time(),2499+ time: event.time(),
2500 },2500 },
2501 );2501 );
2502 2502
@@ -2607,7 +2607,7 @@ impl State {
2607 &RelativeMotionEvent {2607 &RelativeMotionEvent {
2608 delta: event.delta(),2608 delta: event.delta(),
2609 delta_unaccel: event.delta_unaccel(),2609 delta_unaccel: event.delta_unaccel(),
2610- utime: event.time(),2610+ time: event.time(),
2611 },2611 },
2612 );2612 );
2613 2613
@@ -2627,7 +2627,7 @@ impl State {
2627 &MotionEvent {2627 &MotionEvent {
2628 location: new_pos,2628 location: new_pos,
2629 serial,2629 serial,
2630- time: event.time_msec(),2630+ time: event.time(),
2631 },2631 },
2632 );2632 );
2633 2633
@@ -2637,7 +2637,7 @@ impl State {
2637 &RelativeMotionEvent {2637 &RelativeMotionEvent {
2638 delta: event.delta(),2638 delta: event.delta(),
2639 delta_unaccel: event.delta_unaccel(),2639 delta_unaccel: event.delta_unaccel(),
2640- utime: event.time(),2640+ time: event.time(),
2641 },2641 },
2642 );2642 );
2643 2643
@@ -2728,7 +2728,7 @@ impl State {
2728 &MotionEvent {2728 &MotionEvent {
2729 location: pos,2729 location: pos,
2730 serial,2730 serial,
2731- time: event.time_msec(),2731+ time: event.time(),
2732 },2732 },
2733 );2733 );
2734 2734
@@ -3094,7 +3094,7 @@ impl State {
3094 button: button_code,3094 button: button_code,
3095 state: button_state,3095 state: button_state,
3096 serial,3096 serial,
3097- time: event.time_msec(),3097+ time: event.time(),
3098 },3098 },
3099 );3099 );
3100 pointer.frame(self);3100 pointer.frame(self);
@@ -3113,7 +3113,7 @@ impl State {
3113 self.niri.pointer_visibility = PointerVisibility::Visible;3113 self.niri.pointer_visibility = PointerVisibility::Visible;
3114 self.niri.tablet_cursor_location = None;3114 self.niri.tablet_cursor_location = None;
3115 3115
3116- let timestamp = Duration::from_micros(event.time());3116+ let timestamp = Duration::from_micros(event.time().micros());
3117 3117
3118 let horizontal_amount_v120 = event.amount_v120(Axis::Horizontal);3118 let horizontal_amount_v120 = event.amount_v120(Axis::Horizontal);
3119 let vertical_amount_v120 = event.amount_v120(Axis::Vertical);3119 let vertical_amount_v120 = event.amount_v120(Axis::Vertical);
@@ -3550,7 +3550,7 @@ impl State {
3550 let horizontal_amount_v120 = horizontal_amount_v120.map(|x| x * horizontal_factor);3550 let horizontal_amount_v120 = horizontal_amount_v120.map(|x| x * horizontal_factor);
3551 let vertical_amount_v120 = vertical_amount_v120.map(|x| x * vertical_factor);3551 let vertical_amount_v120 = vertical_amount_v120.map(|x| x * vertical_factor);
3552 3552
3553- let mut frame = AxisFrame::new(event.time_msec()).source(source);3553+ let mut frame = AxisFrame::new(event.time()).source(source);
3554 if horizontal_amount != 0.0 {3554 if horizontal_amount != 0.0 {
3555 frame = frame3555 frame = frame
3556 .relative_direction(Axis::Horizontal, event.relative_direction(Axis::Horizontal));3556 .relative_direction(Axis::Horizontal, event.relative_direction(Axis::Horizontal));
@@ -3611,7 +3611,7 @@ impl State {
3611 let tablet_seat = self.niri.seat.tablet_seat();3611 let tablet_seat = self.niri.seat.tablet_seat();
3612 let tool = tablet_seat.get_tool(&event.tool());3612 let tool = tablet_seat.get_tool(&event.tool());
3613 if let Some(tool) = tool {3613 if let Some(tool) = tool {
3614- let time = event.time_msec();3614+ let time = event.time();
3615 3615
3616 let frame = tablet::tool::AxisFrame {3616 let frame = tablet::tool::AxisFrame {
3617 pressure: event.pressure_has_changed().then(|| event.pressure()),3617 pressure: event.pressure_has_changed().then(|| event.pressure()),
@@ -3655,7 +3655,7 @@ impl State {
3655 let tip_state = event.tip_state();3655 let tip_state = event.tip_state();
3656 3656
3657 let serial = SERIAL_COUNTER.next_serial();3657 let serial = SERIAL_COUNTER.next_serial();
3658- let time = event.time_msec();3658+ let time = event.time();
3659 3659
3660 match tip_state {3660 match tip_state {
3661 TabletToolTipState::Down => {3661 TabletToolTipState::Down => {
@@ -3728,7 +3728,7 @@ impl State {
3728 location: pos,3728 location: pos,
3729 };3729 };
3730 let start_data = AnyStartData::TabletTool(start_data);3730 let start_data = AnyStartData::TabletTool(start_data);
3731- let start_timestamp = Duration::from_micros(event.time());3731+ let start_timestamp = Duration::from_micros(event.time().micros());
3732 let grab = TouchOverviewGrab::new(3732 let grab = TouchOverviewGrab::new(
3733 start_data,3733 start_data,
3734 start_timestamp,3734 start_timestamp,
@@ -3810,7 +3810,7 @@ impl State {
3810 let tablet = tablet_seat.get_tablet(&TabletDescriptor::from(&event.device()));3810 let tablet = tablet_seat.get_tablet(&TabletDescriptor::from(&event.device()));
3811 if let Some(tablet) = tablet {3811 if let Some(tablet) = tablet {
3812 let serial = SERIAL_COUNTER.next_serial();3812 let serial = SERIAL_COUNTER.next_serial();
3813- let time = event.time_msec();3813+ let time = event.time();
3814 3814
3815 match event.state() {3815 match event.state() {
3816 ProximityState::In => {3816 ProximityState::In => {
@@ -3913,7 +3913,7 @@ impl State {
3913 }3913 }
3914 }3914 }
3915 3915
3916- let time = event.time_msec();3916+ let time = event.time();
3917 3917
3918 tool.button(3918 tool.button(
3919 self,3919 self,
@@ -3959,7 +3959,7 @@ impl State {
3959 self,3959 self,
3960 &GestureSwipeBeginEvent {3960 &GestureSwipeBeginEvent {
3961 serial,3961 serial,
3962- time: event.time_msec(),3962+ time: event.time(),
3963 fingers: event.fingers(),3963 fingers: event.fingers(),
3964 },3964 },
3965 );3965 );
@@ -4030,7 +4030,7 @@ impl State {
4030 }4030 }
4031 }4031 }
4032 4032
4033- let timestamp = Duration::from_micros(event.time());4033+ let timestamp = Duration::from_micros(event.time().micros());
4034 4034
4035 let mut handled = false;4035 let mut handled = false;
4036 let res = self4036 let res = self
@@ -4080,7 +4080,7 @@ impl State {
4080 pointer.gesture_swipe_update(4080 pointer.gesture_swipe_update(
4081 self,4081 self,
4082 &GestureSwipeUpdateEvent {4082 &GestureSwipeUpdateEvent {
4083- time: event.time_msec(),4083+ time: event.time(),
4084 delta: event.delta(),4084 delta: event.delta(),
4085 },4085 },
4086 );4086 );
@@ -4124,7 +4124,7 @@ impl State {
4124 self,4124 self,
4125 &GestureSwipeEndEvent {4125 &GestureSwipeEndEvent {
4126 serial,4126 serial,
4127- time: event.time_msec(),4127+ time: event.time(),
4128 cancelled: event.cancelled(),4128 cancelled: event.cancelled(),
4129 },4129 },
4130 );4130 );
@@ -4142,7 +4142,7 @@ impl State {
4142 self,4142 self,
4143 &GesturePinchBeginEvent {4143 &GesturePinchBeginEvent {
4144 serial,4144 serial,
4145- time: event.time_msec(),4145+ time: event.time(),
4146 fingers: event.fingers(),4146 fingers: event.fingers(),
4147 },4147 },
4148 );4148 );
@@ -4158,7 +4158,7 @@ impl State {
4158 pointer.gesture_pinch_update(4158 pointer.gesture_pinch_update(
4159 self,4159 self,
4160 &GesturePinchUpdateEvent {4160 &GesturePinchUpdateEvent {
4161- time: event.time_msec(),4161+ time: event.time(),
4162 delta: event.delta(),4162 delta: event.delta(),
4163 scale: event.scale(),4163 scale: event.scale(),
4164 rotation: event.rotation(),4164 rotation: event.rotation(),
@@ -4178,7 +4178,7 @@ impl State {
4178 self,4178 self,
4179 &GesturePinchEndEvent {4179 &GesturePinchEndEvent {
4180 serial,4180 serial,
4181- time: event.time_msec(),4181+ time: event.time(),
4182 cancelled: event.cancelled(),4182 cancelled: event.cancelled(),
4183 },4183 },
4184 );4184 );
@@ -4196,7 +4196,7 @@ impl State {
4196 self,4196 self,
4197 &GestureHoldBeginEvent {4197 &GestureHoldBeginEvent {
4198 serial,4198 serial,
4199- time: event.time_msec(),4199+ time: event.time(),
4200 fingers: event.fingers(),4200 fingers: event.fingers(),
4201 },4201 },
4202 );4202 );
@@ -4214,7 +4214,7 @@ impl State {
4214 self,4214 self,
4215 &GestureHoldEndEvent {4215 &GestureHoldEndEvent {
4216 serial,4216 serial,
4217- time: event.time_msec(),4217+ time: event.time(),
4218 cancelled: event.cancelled(),4218 cancelled: event.cancelled(),
4219 },4219 },
4220 );4220 );
@@ -4326,7 +4326,7 @@ impl State {
4326 location: pos,4326 location: pos,
4327 };4327 };
4328 let start_data = AnyStartData::Touch(start_data);4328 let start_data = AnyStartData::Touch(start_data);
4329- let start_timestamp = Duration::from_micros(evt.time());4329+ let start_timestamp = Duration::from_micros(evt.time().micros());
4330 let grab = TouchOverviewGrab::new(4330 let grab = TouchOverviewGrab::new(
4331 start_data,4331 start_data,
4332 start_timestamp,4332 start_timestamp,
@@ -4372,7 +4372,7 @@ impl State {
4372 slot,4372 slot,
4373 location: pos,4373 location: pos,
4374 serial,4374 serial,
4375- time: evt.time_msec(),4375+ time: evt.time(),
4376 },4376 },
4377 );4377 );
4378 4378
@@ -4399,7 +4399,7 @@ impl State {
4399 &UpEvent {4399 &UpEvent {
4400 slot,4400 slot,
4401 serial,4401 serial,
4402- time: evt.time_msec(),4402+ time: evt.time(),
4403 },4403 },
4404 )4404 )
4405 }4405 }
@@ -4429,7 +4429,7 @@ impl State {
4429 &TouchMotionEvent {4429 &TouchMotionEvent {
4430 slot,4430 slot,
4431 location: pos,4431 location: pos,
4432- time: evt.time_msec(),4432+ time: evt.time(),
4433 },4433 },
4434 );4434 );
4435 4435
src/input/move_grab.rsmodified+8 -9
@@ -1,6 +1,6 @@
1 use std::time::Duration;1 use std::time::Duration;
2 2
3-use smithay::backend::input::ButtonState;3+use smithay::backend::input::{ButtonState, InputTime};
4 use smithay::desktop::Window;4 use smithay::desktop::Window;
5 use smithay::input::pointer::{5 use smithay::input::pointer::{
6 AxisFrame, ButtonEvent, CursorIcon, CursorImageStatus, GestureHoldBeginEvent,6 AxisFrame, ButtonEvent, CursorIcon, CursorImageStatus, GestureHoldBeginEvent,
@@ -20,7 +20,6 @@ use smithay::utils::{IsAlive, Logical, Point, SERIAL_COUNTER};
20 20
21 use crate::input::AnyStartData;21 use crate::input::AnyStartData;
22 use crate::niri::State;22 use crate::niri::State;
23-use crate::utils::get_monotonic_time;
24 23
25 pub struct MoveGrab {24 pub struct MoveGrab {
26 start_data: AnyStartData<State>,25 start_data: AnyStartData<State>,
@@ -311,7 +310,7 @@ impl PointerGrab<State> for MoveGrab {
311 310
312 // Relative motion takes precedence over normal motion.311 // Relative motion takes precedence over normal motion.
313 if self.relative_delta.is_none() {312 if self.relative_delta.is_none() {
314- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));313+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
315 }314 }
316 }315 }
317 316
@@ -326,7 +325,7 @@ impl PointerGrab<State> for MoveGrab {
326 handle.relative_motion(data, None, event);325 handle.relative_motion(data, None, event);
327 326
328 *self.relative_delta.get_or_insert_default() += event.delta;327 *self.relative_delta.get_or_insert_default() += event.delta;
329- self.event_timestamp = Some(Duration::from_micros(event.utime));328+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
330 }329 }
331 330
332 fn button(331 fn button(
@@ -378,7 +377,7 @@ impl PointerGrab<State> for MoveGrab {
378 self,377 self,
379 data,378 data,
380 SERIAL_COUNTER.next_serial(),379 SERIAL_COUNTER.next_serial(),
381- get_monotonic_time().as_millis() as u32,380+ InputTime::now(),
382 true,381 true,
383 );382 );
384 }383 }
@@ -511,7 +510,7 @@ impl TouchGrab<State> for MoveGrab {
511 }510 }
512 511
513 self.new_location = event.location;512 self.new_location = event.location;
514- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));513+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
515 }514 }
516 515
517 fn frame(&mut self, data: &mut State, handle: &mut TouchInnerHandle<'_, State>) {516 fn frame(&mut self, data: &mut State, handle: &mut TouchInnerHandle<'_, State>) {
@@ -580,7 +579,7 @@ impl TabletToolGrab<State> for MoveGrab {
580 handle.motion(data, None, event);579 handle.motion(data, None, event);
581 580
582 self.new_location = event.location;581 self.new_location = event.location;
583- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));582+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
584 }583 }
585 584
586 fn down(585 fn down(
@@ -624,7 +623,7 @@ impl TabletToolGrab<State> for MoveGrab {
624 &mut self,623 &mut self,
625 data: &mut State,624 data: &mut State,
626 handle: &mut TabletToolInnerHandle<'_, State>,625 handle: &mut TabletToolInnerHandle<'_, State>,
627- time: u32,626+ time: InputTime,
628 ) {627 ) {
629 handle.frame(data, time);628 handle.frame(data, time);
630 629
@@ -634,7 +633,7 @@ impl TabletToolGrab<State> for MoveGrab {
634 self,633 self,
635 data,634 data,
636 SERIAL_COUNTER.next_serial(),635 SERIAL_COUNTER.next_serial(),
637- get_monotonic_time().as_millis() as u32,636+ InputTime::now(),
638 true,637 true,
639 );638 );
640 }639 }
src/input/resize_grab.rsmodified+4 -4
@@ -1,3 +1,4 @@
1+use smithay::backend::input::InputTime;
1 use smithay::desktop::Window;2 use smithay::desktop::Window;
2 use smithay::input::pointer::{3 use smithay::input::pointer::{
3 AxisFrame, ButtonEvent, CursorImageStatus, GestureHoldBeginEvent, GestureHoldEndEvent,4 AxisFrame, ButtonEvent, CursorImageStatus, GestureHoldBeginEvent, GestureHoldEndEvent,
@@ -15,7 +16,6 @@ use smithay::utils::{IsAlive, Logical, Point, SERIAL_COUNTER};
15 16
16 use crate::input::AnyStartData;17 use crate::input::AnyStartData;
17 use crate::niri::State;18 use crate::niri::State;
18-use crate::utils::get_monotonic_time;
19 19
20 pub struct ResizeGrab {20 pub struct ResizeGrab {
21 start_data: AnyStartData<State>,21 start_data: AnyStartData<State>,
@@ -116,7 +116,7 @@ impl PointerGrab<State> for ResizeGrab {
116 self,116 self,
117 data,117 data,
118 SERIAL_COUNTER.next_serial(),118 SERIAL_COUNTER.next_serial(),
119- get_monotonic_time().as_millis() as u32,119+ InputTime::now(),
120 true,120 true,
121 );121 );
122 }122 }
@@ -354,7 +354,7 @@ impl TabletToolGrab<State> for ResizeGrab {
354 &mut self,354 &mut self,
355 data: &mut State,355 data: &mut State,
356 handle: &mut TabletToolInnerHandle<'_, State>,356 handle: &mut TabletToolInnerHandle<'_, State>,
357- time: u32,357+ time: InputTime,
358 ) {358 ) {
359 handle.frame(data, time);359 handle.frame(data, time);
360 360
@@ -364,7 +364,7 @@ impl TabletToolGrab<State> for ResizeGrab {
364 self,364 self,
365 data,365 data,
366 SERIAL_COUNTER.next_serial(),366 SERIAL_COUNTER.next_serial(),
367- get_monotonic_time().as_millis() as u32,367+ InputTime::now(),
368 true,368 true,
369 );369 );
370 }370 }
src/input/spatial_movement_grab.rsmodified+4 -4
@@ -1,5 +1,6 @@
1 use std::time::Duration;1 use std::time::Duration;
2 2
3+use smithay::backend::input::InputTime;
3 use smithay::input::pointer::{4 use smithay::input::pointer::{
4 AxisFrame, ButtonEvent, CursorImageStatus, GestureHoldBeginEvent, GestureHoldEndEvent,5 AxisFrame, ButtonEvent, CursorImageStatus, GestureHoldBeginEvent, GestureHoldEndEvent,
5 GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent, GestureSwipeBeginEvent,6 GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent, GestureSwipeBeginEvent,
@@ -12,7 +13,6 @@ use smithay::utils::{Logical, Point, SERIAL_COUNTER};
12 13
13 use crate::layout::workspace::WorkspaceId;14 use crate::layout::workspace::WorkspaceId;
14 use crate::niri::State;15 use crate::niri::State;
15-use crate::utils::get_monotonic_time;
16 16
17 pub struct SpatialMovementGrab {17 pub struct SpatialMovementGrab {
18 start_data: PointerGrabStartData<State>,18 start_data: PointerGrabStartData<State>,
@@ -159,7 +159,7 @@ impl PointerGrab<State> for SpatialMovementGrab {
159 159
160 // Relative motion takes precedence over normal motion.160 // Relative motion takes precedence over normal motion.
161 if self.relative_delta.is_none() {161 if self.relative_delta.is_none() {
162- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));162+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
163 }163 }
164 }164 }
165 165
@@ -174,7 +174,7 @@ impl PointerGrab<State> for SpatialMovementGrab {
174 handle.relative_motion(data, None, event);174 handle.relative_motion(data, None, event);
175 175
176 *self.relative_delta.get_or_insert_default() += event.delta;176 *self.relative_delta.get_or_insert_default() += event.delta;
177- self.event_timestamp = Some(Duration::from_micros(event.utime));177+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
178 }178 }
179 179
180 fn button(180 fn button(
@@ -209,7 +209,7 @@ impl PointerGrab<State> for SpatialMovementGrab {
209 self,209 self,
210 data,210 data,
211 SERIAL_COUNTER.next_serial(),211 SERIAL_COUNTER.next_serial(),
212- get_monotonic_time().as_millis() as u32,212+ InputTime::now(),
213 true,213 true,
214 );214 );
215 }215 }
src/input/touch_overview_grab.rsmodified+5 -5
@@ -1,5 +1,6 @@
1 use std::time::Duration;1 use std::time::Duration;
2 2
3+use smithay::backend::input::InputTime;
3 use smithay::desktop::Window;4 use smithay::desktop::Window;
4 use smithay::input::pointer::{CursorIcon, CursorImageStatus};5 use smithay::input::pointer::{CursorIcon, CursorImageStatus};
5 use smithay::input::tablet::tool::{TabletToolGrab, TabletToolInnerHandle};6 use smithay::input::tablet::tool::{TabletToolGrab, TabletToolInnerHandle};
@@ -15,7 +16,6 @@ use smithay::utils::{IsAlive, Logical, Point, SERIAL_COUNTER};
15 use crate::input::AnyStartData;16 use crate::input::AnyStartData;
16 use crate::layout::workspace::{Workspace, WorkspaceId};17 use crate::layout::workspace::{Workspace, WorkspaceId};
17 use crate::niri::State;18 use crate::niri::State;
18-use crate::utils::get_monotonic_time;
19 use crate::window::Mapped;19 use crate::window::Mapped;
20 20
21 // When the touch is stationary for this much time, it becomes an interactive move.21 // When the touch is stationary for this much time, it becomes an interactive move.
@@ -282,7 +282,7 @@ impl TouchGrab<State> for TouchOverviewGrab {
282 }282 }
283 283
284 self.new_location = event.location;284 self.new_location = event.location;
285- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));285+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
286 }286 }
287 287
288 fn frame(&mut self, data: &mut State, handle: &mut TouchInnerHandle<'_, State>) {288 fn frame(&mut self, data: &mut State, handle: &mut TouchInnerHandle<'_, State>) {
@@ -351,7 +351,7 @@ impl TabletToolGrab<State> for TouchOverviewGrab {
351 handle.motion(data, None, event);351 handle.motion(data, None, event);
352 352
353 self.new_location = event.location;353 self.new_location = event.location;
354- self.event_timestamp = Some(Duration::from_millis(u64::from(event.time)));354+ self.event_timestamp = Some(Duration::from_micros(event.time.micros()));
355 }355 }
356 356
357 fn down(357 fn down(
@@ -395,7 +395,7 @@ impl TabletToolGrab<State> for TouchOverviewGrab {
395 &mut self,395 &mut self,
396 data: &mut State,396 data: &mut State,
397 handle: &mut TabletToolInnerHandle<'_, State>,397 handle: &mut TabletToolInnerHandle<'_, State>,
398- time: u32,398+ time: InputTime,
399 ) {399 ) {
400 handle.frame(data, time);400 handle.frame(data, time);
401 401
@@ -405,7 +405,7 @@ impl TabletToolGrab<State> for TouchOverviewGrab {
405 self,405 self,
406 data,406 data,
407 SERIAL_COUNTER.next_serial(),407 SERIAL_COUNTER.next_serial(),
408- get_monotonic_time().as_millis() as u32,408+ InputTime::now(),
409 true,409 true,
410 );410 );
411 }411 }
src/niri.rsmodified+6 -11
@@ -20,7 +20,7 @@ use niri_config::{
20 WorkspaceReference, Xkb,20 WorkspaceReference, Xkb,
21 };21 };
22 use smithay::backend::allocator::Fourcc;22 use smithay::backend::allocator::Fourcc;
23-use smithay::backend::input::Keycode;23+use smithay::backend::input::{InputTime, Keycode};
24 use smithay::backend::renderer::damage::OutputDamageTracker;24 use smithay::backend::renderer::damage::OutputDamageTracker;
25 use smithay::backend::renderer::element::memory::MemoryRenderBufferRenderElement;25 use smithay::backend::renderer::element::memory::MemoryRenderBufferRenderElement;
26 use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement;26 use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement;
@@ -875,7 +875,7 @@ impl State {
875 &MotionEvent {875 &MotionEvent {
876 location,876 location,
877 serial: SERIAL_COUNTER.next_serial(),877 serial: SERIAL_COUNTER.next_serial(),
878- time: get_monotonic_time().as_millis() as u32,878+ time: InputTime::now(),
879 },879 },
880 );880 );
881 pointer.frame(self);881 pointer.frame(self);
@@ -1106,7 +1106,7 @@ impl State {
1106 &MotionEvent {1106 &MotionEvent {
1107 location,1107 location,
1108 serial: SERIAL_COUNTER.next_serial(),1108 serial: SERIAL_COUNTER.next_serial(),
1109- time: get_monotonic_time().as_millis() as u32,1109+ time: InputTime::now(),
1110 },1110 },
1111 );1111 );
1112 1112
@@ -1336,7 +1336,7 @@ impl State {
1336 self.niri.seat.get_pointer().unwrap().unset_grab(1336 self.niri.seat.get_pointer().unwrap().unset_grab(
1337 self,1337 self,
1338 SERIAL_COUNTER.next_serial(),1338 SERIAL_COUNTER.next_serial(),
1339- get_monotonic_time().as_millis() as u32,1339+ InputTime::now(),
1340 );1340 );
1341 self.niri.popup_grab = None;1341 self.niri.popup_grab = None;
1342 }1342 }
@@ -1999,7 +1999,7 @@ impl State {
1999 };1999 };
2000 2000
2001 // Now that we captured the screenshots, clear grabs like drag-and-drop, etc.2001 // Now that we captured the screenshots, clear grabs like drag-and-drop, etc.
2002- let time = get_monotonic_time().as_millis() as u32;2002+ let time = InputTime::now();
2003 self.niri2003 self.niri
2004 .seat2004 .seat
2005 .get_pointer()2005 .get_pointer()
@@ -2009,12 +2009,7 @@ impl State {
2009 touch.unset_grab(self);2009 touch.unset_grab(self);
2010 }2010 }
2011 2011
2012- // Can't unset_grab() from with_tools(), will deadlock on tablet seat mutex...2012+ for tool in self.niri.seat.tablet_seat().get_tools().into_values() {
2013- let mut tools = Vec::new();
2014- self.niri.seat.tablet_seat().with_tools(|map| {
2015- tools = Vec::from_iter(map.values().cloned());
2016- });
2017- for tool in tools {
2018 tool.unset_grab(self, SERIAL_COUNTER.next_serial(), time);2013 tool.unset_grab(self, SERIAL_COUNTER.next_serial(), time);
2019 }2014 }
2020 2015
src/protocols/virtual_pointer.rsmodified+12 -10
@@ -3,7 +3,7 @@ use std::sync::Mutex;
3 3
4 use smithay::backend::input::{4 use smithay::backend::input::{
5 AbsolutePositionEvent, Axis, AxisRelativeDirection, AxisSource, ButtonState, Device,5 AbsolutePositionEvent, Axis, AxisRelativeDirection, AxisSource, ButtonState, Device,
6- DeviceCapability, Event, InputBackend, PointerAxisEvent, PointerButtonEvent,6+ DeviceCapability, Event, InputBackend, InputTime, PointerAxisEvent, PointerButtonEvent,
7 PointerMotionAbsoluteEvent, PointerMotionEvent, UnusedEvent,7 PointerMotionAbsoluteEvent, PointerMotionEvent, UnusedEvent,
8 };8 };
9 use smithay::input::pointer::AxisFrame;9 use smithay::input::pointer::AxisFrame;
@@ -69,7 +69,9 @@ impl VirtualPointer {
69 fn mutate_axis_frame(&self, time: Option<u32>, f: impl FnOnce(AxisFrame) -> AxisFrame) {69 fn mutate_axis_frame(&self, time: Option<u32>, f: impl FnOnce(AxisFrame) -> AxisFrame) {
70 let mut frame = self.data().axis_frame.lock().unwrap();70 let mut frame = self.data().axis_frame.lock().unwrap();
71 71
72- *frame = frame.or(time.map(AxisFrame::new)).map(f);72+ *frame = frame
73+ .or(time.map(InputTime::from_millis).map(AxisFrame::new))
74+ .map(f);
73 }75 }
74 }76 }
75 77
@@ -103,8 +105,8 @@ pub struct VirtualPointerMotionEvent {
103 }105 }
104 106
105 impl Event<VirtualPointerInputBackend> for VirtualPointerMotionEvent {107 impl Event<VirtualPointerInputBackend> for VirtualPointerMotionEvent {
106- fn time(&self) -> u64 {108+ fn time(&self) -> InputTime {
107- self.time as u64 * 1000 // millis to micros109+ InputTime::from_millis(self.time)
108 }110 }
109 111
110 fn device(&self) -> VirtualPointer {112 fn device(&self) -> VirtualPointer {
@@ -140,8 +142,8 @@ pub struct VirtualPointerMotionAbsoluteEvent {
140 }142 }
141 143
142 impl Event<VirtualPointerInputBackend> for VirtualPointerMotionAbsoluteEvent {144 impl Event<VirtualPointerInputBackend> for VirtualPointerMotionAbsoluteEvent {
143- fn time(&self) -> u64 {145+ fn time(&self) -> InputTime {
144- self.time as u64 * 1000 // millis to micros146+ InputTime::from_millis(self.time)
145 }147 }
146 148
147 fn device(&self) -> VirtualPointer {149 fn device(&self) -> VirtualPointer {
@@ -175,8 +177,8 @@ pub struct VirtualPointerButtonEvent {
175 }177 }
176 178
177 impl Event<VirtualPointerInputBackend> for VirtualPointerButtonEvent {179 impl Event<VirtualPointerInputBackend> for VirtualPointerButtonEvent {
178- fn time(&self) -> u64 {180+ fn time(&self) -> InputTime {
179- self.time as u64 * 1000 // millis to micros181+ InputTime::from_millis(self.time)
180 }182 }
181 183
182 fn device(&self) -> VirtualPointer {184 fn device(&self) -> VirtualPointer {
@@ -200,8 +202,8 @@ pub struct VirtualPointerAxisEvent {
200 }202 }
201 203
202 impl Event<VirtualPointerInputBackend> for VirtualPointerAxisEvent {204 impl Event<VirtualPointerInputBackend> for VirtualPointerAxisEvent {
203- fn time(&self) -> u64 {205+ fn time(&self) -> InputTime {
204- self.frame.time as u64 * 1000 // millis to micros206+ self.frame.time
205 }207 }
206 208
207 fn device(&self) -> VirtualPointer {209 fn device(&self) -> VirtualPointer {