forge
Explore
Log in

Don't you dare go Hollow

Update smithay to the latest git

Browse files at this commit

c6ec36f422c0b7e955bddcc7f783a963e313a8a7Kirill ChibisovParent: 8a06bf1
This fixes IME handling.
Cargo.lockmodified+317 -223
@@ -15,6 +15,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
15 checksum = "cd7d5a2cecb58716e47d67d5703a249964b14c7be1ec3cad3affc295b2d1c35d"15 checksum = "cd7d5a2cecb58716e47d67d5703a249964b14c7be1ec3cad3affc295b2d1c35d"
16 dependencies = [16 dependencies = [
17 "cfg-if",17 "cfg-if",
18+ "getrandom",
18 "once_cell",19 "once_cell",
19 "version_check",20 "version_check",
20 "zerocopy",21 "zerocopy",
@@ -37,20 +38,23 @@ checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
37 38
38 [[package]]39 [[package]]
39 name = "android-activity"40 name = "android-activity"
40-version = "0.4.3"41+version = "0.5.0"
41 source = "registry+https://github.com/rust-lang/crates.io-index"42 source = "registry+https://github.com/rust-lang/crates.io-index"
42-checksum = "64529721f27c2314ced0890ce45e469574a73e5e6fdd6e9da1860eb29285f5e0"43+checksum = "052ad56e336bcc615a214bffbeca6c181ee9550acec193f0327e0b103b033a4d"
43 dependencies = [44 dependencies = [
44 "android-properties",45 "android-properties",
45- "bitflags 1.3.2",46+ "bitflags 2.4.1",
46 "cc",47 "cc",
48+ "cesu8",
49+ "jni",
47 "jni-sys",50 "jni-sys",
48 "libc",51 "libc",
49 "log",52 "log",
50 "ndk",53 "ndk",
51 "ndk-context",54 "ndk-context",
52 "ndk-sys",55 "ndk-sys",
53- "num_enum 0.6.1",56+ "num_enum",
57+ "thiserror",
54 ]58 ]
55 59
56 [[package]]60 [[package]]
@@ -134,6 +138,12 @@ version = "0.7.4"
134 source = "registry+https://github.com/rust-lang/crates.io-index"138 source = "registry+https://github.com/rust-lang/crates.io-index"
135 checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"139 checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
136 140
141+[[package]]
142+name = "as-raw-xcb-connection"
143+version = "1.0.0"
144+source = "registry+https://github.com/rust-lang/crates.io-index"
145+checksum = "2d5f312b0a56c5cdf967c0aeb67f6289603354951683bc97ddc595ab974ba9aa"
146+
137 [[package]]147 [[package]]
138 name = "async-broadcast"148 name = "async-broadcast"
139 version = "0.5.1"149 version = "0.5.1"
@@ -349,21 +359,21 @@ dependencies = [
349 359
350 [[package]]360 [[package]]
351 name = "block-sys"361 name = "block-sys"
352-version = "0.1.0-beta.1"362+version = "0.2.0"
353 source = "registry+https://github.com/rust-lang/crates.io-index"363 source = "registry+https://github.com/rust-lang/crates.io-index"
354-checksum = "0fa55741ee90902547802152aaf3f8e5248aab7e21468089560d4c8840561146"364+checksum = "2dd7cf50912cddc06dc5ea7c08c5e81c1b2c842a70d19def1848d54c586fed92"
355 dependencies = [365 dependencies = [
356 "objc-sys",366 "objc-sys",
357 ]367 ]
358 368
359 [[package]]369 [[package]]
360 name = "block2"370 name = "block2"
361-version = "0.2.0-alpha.6"371+version = "0.3.0"
362 source = "registry+https://github.com/rust-lang/crates.io-index"372 source = "registry+https://github.com/rust-lang/crates.io-index"
363-checksum = "8dd9e63c1744f755c2f60332b88de39d341e5e86239014ad839bd71c106dec42"373+checksum = "15b55663a85f33501257357e6421bb33e769d5c9ffb5ba0921c975a123e35e68"
364 dependencies = [374 dependencies = [
365 "block-sys",375 "block-sys",
366- "objc2-encode",376+ "objc2",
367 ]377 ]
368 378
369 [[package]]379 [[package]]
@@ -415,18 +425,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
415 checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"425 checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
416 426
417 [[package]]427 [[package]]
418-name = "calloop"428+name = "bytes"
419-version = "0.10.6"429+version = "1.5.0"
420 source = "registry+https://github.com/rust-lang/crates.io-index"430 source = "registry+https://github.com/rust-lang/crates.io-index"
421-checksum = "52e0d00eb1ea24371a97d2da6201c6747a633dc6dc1988ef503403b4c59504a8"431+checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
422-dependencies = [
423- "bitflags 1.3.2",
424- "log",
425- "nix 0.25.1",
426- "slotmap",
427- "thiserror",
428- "vec_map",
429-]
430 432
431 [[package]]433 [[package]]
432 name = "calloop"434 name = "calloop"
@@ -442,6 +444,18 @@ dependencies = [
442 "thiserror",444 "thiserror",
443 ]445 ]
444 446
447+[[package]]
448+name = "calloop-wayland-source"
449+version = "0.2.0"
450+source = "registry+https://github.com/rust-lang/crates.io-index"
451+checksum = "0f0ea9b9476c7fad82841a8dbb380e2eae480c21910feba80725b46931ed8f02"
452+dependencies = [
453+ "calloop",
454+ "rustix 0.38.20",
455+ "wayland-backend",
456+ "wayland-client",
457+]
458+
445 [[package]]459 [[package]]
446 name = "cc"460 name = "cc"
447 version = "1.0.83"461 version = "1.0.83"
@@ -452,6 +466,12 @@ dependencies = [
452 "libc",466 "libc",
453 ]467 ]
454 468
469+[[package]]
470+name = "cesu8"
471+version = "1.1.0"
472+source = "registry+https://github.com/rust-lang/crates.io-index"
473+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
474+
455 [[package]]475 [[package]]
456 name = "cexpr"476 name = "cexpr"
457 version = "0.6.0"477 version = "0.6.0"
@@ -565,6 +585,16 @@ version = "1.0.0"
565 source = "registry+https://github.com/rust-lang/crates.io-index"585 source = "registry+https://github.com/rust-lang/crates.io-index"
566 checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"586 checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
567 587
588+[[package]]
589+name = "combine"
590+version = "4.6.6"
591+source = "registry+https://github.com/rust-lang/crates.io-index"
592+checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4"
593+dependencies = [
594+ "bytes",
595+ "memchr",
596+]
597+
568 [[package]]598 [[package]]
569 name = "concurrent-queue"599 name = "concurrent-queue"
570 version = "2.3.0"600 version = "2.3.0"
@@ -607,9 +637,9 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
607 637
608 [[package]]638 [[package]]
609 name = "core-graphics"639 name = "core-graphics"
610-version = "0.22.3"640+version = "0.23.1"
611 source = "registry+https://github.com/rust-lang/crates.io-index"641 source = "registry+https://github.com/rust-lang/crates.io-index"
612-checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb"642+checksum = "970a29baf4110c26fedbc7f82107d42c23f7e88e404c4577ed73fe99ff85a212"
613 dependencies = [643 dependencies = [
614 "bitflags 1.3.2",644 "bitflags 1.3.2",
615 "core-foundation",645 "core-foundation",
@@ -881,18 +911,30 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
881 911
882 [[package]]912 [[package]]
883 name = "foreign-types"913 name = "foreign-types"
884-version = "0.3.2"914+version = "0.5.0"
885 source = "registry+https://github.com/rust-lang/crates.io-index"915 source = "registry+https://github.com/rust-lang/crates.io-index"
886-checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"916+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
887 dependencies = [917 dependencies = [
918+ "foreign-types-macros",
888 "foreign-types-shared",919 "foreign-types-shared",
889 ]920 ]
890 921
922+[[package]]
923+name = "foreign-types-macros"
924+version = "0.2.3"
925+source = "registry+https://github.com/rust-lang/crates.io-index"
926+checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
927+dependencies = [
928+ "proc-macro2",
929+ "quote",
930+ "syn 2.0.38",
931+]
932+
891 [[package]]933 [[package]]
892 name = "foreign-types-shared"934 name = "foreign-types-shared"
893-version = "0.1.1"935+version = "0.3.1"
894 source = "registry+https://github.com/rust-lang/crates.io-index"936 source = "registry+https://github.com/rust-lang/crates.io-index"
895-checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"937+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
896 938
897 [[package]]939 [[package]]
898 name = "futures-core"940 name = "futures-core"
@@ -996,6 +1038,16 @@ dependencies = [
996 "version_check",1038 "version_check",
997 ]1039 ]
998 1040
1041+[[package]]
1042+name = "gethostname"
1043+version = "0.3.0"
1044+source = "registry+https://github.com/rust-lang/crates.io-index"
1045+checksum = "bb65d4ba3173c56a500b555b532f72c42e8d1fe64962b518897f8959fae2c177"
1046+dependencies = [
1047+ "libc",
1048+ "winapi",
1049+]
1050+
999 [[package]]1051 [[package]]
1000 name = "getrandom"1052 name = "getrandom"
1001 version = "0.2.10"1053 version = "0.2.10"
@@ -1055,6 +1107,17 @@ version = "0.4.3"
1055 source = "registry+https://github.com/rust-lang/crates.io-index"1107 source = "registry+https://github.com/rust-lang/crates.io-index"
1056 checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"1108 checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1057 1109
1110+[[package]]
1111+name = "icrate"
1112+version = "0.0.4"
1113+source = "registry+https://github.com/rust-lang/crates.io-index"
1114+checksum = "99d3aaff8a54577104bafdf686ff18565c3b6903ca5782a2026ef06e2c7aa319"
1115+dependencies = [
1116+ "block2",
1117+ "dispatch",
1118+ "objc2",
1119+]
1120+
1058 [[package]]1121 [[package]]
1059 name = "image"1122 name = "image"
1060 version = "0.24.7"1123 version = "0.24.7"
@@ -1108,9 +1171,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1108 checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"1171 checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
1109 dependencies = [1172 dependencies = [
1110 "cfg-if",1173 "cfg-if",
1111- "js-sys",
1112- "wasm-bindgen",
1113- "web-sys",
1114 ]1174 ]
1115 1175
1116 [[package]]1176 [[package]]
@@ -1136,6 +1196,22 @@ version = "1.0.9"
1136 source = "registry+https://github.com/rust-lang/crates.io-index"1196 source = "registry+https://github.com/rust-lang/crates.io-index"
1137 checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"1197 checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
1138 1198
1199+[[package]]
1200+name = "jni"
1201+version = "0.21.1"
1202+source = "registry+https://github.com/rust-lang/crates.io-index"
1203+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
1204+dependencies = [
1205+ "cesu8",
1206+ "cfg-if",
1207+ "combine",
1208+ "jni-sys",
1209+ "log",
1210+ "thiserror",
1211+ "walkdir",
1212+ "windows-sys 0.45.0",
1213+]
1214+
1139 [[package]]1215 [[package]]
1140 name = "jni-sys"1216 name = "jni-sys"
1141 version = "0.3.0"1217 version = "0.3.0"
@@ -1360,15 +1436,6 @@ version = "2.6.4"
1360 source = "registry+https://github.com/rust-lang/crates.io-index"1436 source = "registry+https://github.com/rust-lang/crates.io-index"
1361 checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"1437 checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
1362 1438
1363-[[package]]
1364-name = "memmap2"
1365-version = "0.5.10"
1366-source = "registry+https://github.com/rust-lang/crates.io-index"
1367-checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
1368-dependencies = [
1369- "libc",
1370-]
1371-
1372 [[package]]1439 [[package]]
1373 name = "memmap2"1440 name = "memmap2"
1374 version = "0.8.0"1441 version = "0.8.0"
@@ -1379,12 +1446,12 @@ dependencies = [
1379 ]1446 ]
1380 1447
1381 [[package]]1448 [[package]]
1382-name = "memoffset"1449+name = "memmap2"
1383-version = "0.6.5"1450+version = "0.9.0"
1384 source = "registry+https://github.com/rust-lang/crates.io-index"1451 source = "registry+https://github.com/rust-lang/crates.io-index"
1385-checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"1452+checksum = "deaba38d7abf1d4cca21cc89e932e542ba2b9258664d2a9ef0e61512039c9375"
1386 dependencies = [1453 dependencies = [
1387- "autocfg",1454+ "libc",
1388 ]1455 ]
1389 1456
1390 [[package]]1457 [[package]]
@@ -1444,28 +1511,17 @@ dependencies = [
1444 "simd-adler32",1511 "simd-adler32",
1445 ]1512 ]
1446 1513
1447-[[package]]
1448-name = "mio"
1449-version = "0.8.9"
1450-source = "registry+https://github.com/rust-lang/crates.io-index"
1451-checksum = "3dce281c5e46beae905d4de1870d8b1509a9142b62eedf18b443b011ca8343d0"
1452-dependencies = [
1453- "libc",
1454- "log",
1455- "wasi",
1456- "windows-sys 0.48.0",
1457-]
1458-
1459 [[package]]1514 [[package]]
1460 name = "ndk"1515 name = "ndk"
1461-version = "0.7.0"1516+version = "0.8.0"
1462 source = "registry+https://github.com/rust-lang/crates.io-index"1517 source = "registry+https://github.com/rust-lang/crates.io-index"
1463-checksum = "451422b7e4718271c8b5b3aadf5adedba43dc76312454b387e98fae0fc951aa0"1518+checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
1464 dependencies = [1519 dependencies = [
1465- "bitflags 1.3.2",1520+ "bitflags 2.4.1",
1466 "jni-sys",1521 "jni-sys",
1522+ "log",
1467 "ndk-sys",1523 "ndk-sys",
1468- "num_enum 0.5.11",1524+ "num_enum",
1469 "raw-window-handle",1525 "raw-window-handle",
1470 "thiserror",1526 "thiserror",
1471 ]1527 ]
@@ -1478,9 +1534,9 @@ checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
1478 1534
1479 [[package]]1535 [[package]]
1480 name = "ndk-sys"1536 name = "ndk-sys"
1481-version = "0.4.1+23.1.7779620"1537+version = "0.5.0+25.2.9519653"
1482 source = "registry+https://github.com/rust-lang/crates.io-index"1538 source = "registry+https://github.com/rust-lang/crates.io-index"
1483-checksum = "3cf2aae958bd232cac5069850591667ad422d263686d75b52a065f9badeee5a3"1539+checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691"
1484 dependencies = [1540 dependencies = [
1485 "jni-sys",1541 "jni-sys",
1486 ]1542 ]
@@ -1520,31 +1576,6 @@ dependencies = [
1520 "zbus",1576 "zbus",
1521 ]1577 ]
1522 1578
1523-[[package]]
1524-name = "nix"
1525-version = "0.24.3"
1526-source = "registry+https://github.com/rust-lang/crates.io-index"
1527-checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069"
1528-dependencies = [
1529- "bitflags 1.3.2",
1530- "cfg-if",
1531- "libc",
1532- "memoffset 0.6.5",
1533-]
1534-
1535-[[package]]
1536-name = "nix"
1537-version = "0.25.1"
1538-source = "registry+https://github.com/rust-lang/crates.io-index"
1539-checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4"
1540-dependencies = [
1541- "autocfg",
1542- "bitflags 1.3.2",
1543- "cfg-if",
1544- "libc",
1545- "memoffset 0.6.5",
1546-]
1547-
1548 [[package]]1579 [[package]]
1549 name = "nix"1580 name = "nix"
1550 version = "0.26.4"1581 version = "0.26.4"
@@ -1622,39 +1653,18 @@ dependencies = [
1622 1653
1623 [[package]]1654 [[package]]
1624 name = "num_enum"1655 name = "num_enum"
1625-version = "0.5.11"1656+version = "0.7.0"
1626-source = "registry+https://github.com/rust-lang/crates.io-index"
1627-checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
1628-dependencies = [
1629- "num_enum_derive 0.5.11",
1630-]
1631-
1632-[[package]]
1633-name = "num_enum"
1634-version = "0.6.1"
1635-source = "registry+https://github.com/rust-lang/crates.io-index"
1636-checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1"
1637-dependencies = [
1638- "num_enum_derive 0.6.1",
1639-]
1640-
1641-[[package]]
1642-name = "num_enum_derive"
1643-version = "0.5.11"
1644 source = "registry+https://github.com/rust-lang/crates.io-index"1657 source = "registry+https://github.com/rust-lang/crates.io-index"
1645-checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"1658+checksum = "70bf6736f74634d299d00086f02986875b3c2d924781a6a2cb6c201e73da0ceb"
1646 dependencies = [1659 dependencies = [
1647- "proc-macro-crate",1660+ "num_enum_derive",
1648- "proc-macro2",
1649- "quote",
1650- "syn 1.0.109",
1651 ]1661 ]
1652 1662
1653 [[package]]1663 [[package]]
1654 name = "num_enum_derive"1664 name = "num_enum_derive"
1655-version = "0.6.1"1665+version = "0.7.0"
1656 source = "registry+https://github.com/rust-lang/crates.io-index"1666 source = "registry+https://github.com/rust-lang/crates.io-index"
1657-checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6"1667+checksum = "56ea360eafe1022f7cc56cd7b869ed57330fb2453d0c7831d99b74c65d2f5597"
1658 dependencies = [1668 dependencies = [
1659 "proc-macro-crate",1669 "proc-macro-crate",
1660 "proc-macro2",1670 "proc-macro2",
@@ -1673,29 +1683,25 @@ dependencies = [
1673 1683
1674 [[package]]1684 [[package]]
1675 name = "objc-sys"1685 name = "objc-sys"
1676-version = "0.2.0-beta.2"1686+version = "0.3.1"
1677 source = "registry+https://github.com/rust-lang/crates.io-index"1687 source = "registry+https://github.com/rust-lang/crates.io-index"
1678-checksum = "df3b9834c1e95694a05a828b59f55fa2afec6288359cda67146126b3f90a55d7"1688+checksum = "99e1d07c6eab1ce8b6382b8e3c7246fe117ff3f8b34be065f5ebace6749fe845"
1679 1689
1680 [[package]]1690 [[package]]
1681 name = "objc2"1691 name = "objc2"
1682-version = "0.3.0-beta.3.patch-leaks.3"1692+version = "0.4.1"
1683 source = "registry+https://github.com/rust-lang/crates.io-index"1693 source = "registry+https://github.com/rust-lang/crates.io-index"
1684-checksum = "7e01640f9f2cb1220bbe80325e179e532cb3379ebcd1bf2279d703c19fe3a468"1694+checksum = "559c5a40fdd30eb5e344fbceacf7595a81e242529fb4e21cf5f43fb4f11ff98d"
1685 dependencies = [1695 dependencies = [
1686- "block2",
1687 "objc-sys",1696 "objc-sys",
1688 "objc2-encode",1697 "objc2-encode",
1689 ]1698 ]
1690 1699
1691 [[package]]1700 [[package]]
1692 name = "objc2-encode"1701 name = "objc2-encode"
1693-version = "2.0.0-pre.2"1702+version = "3.0.0"
1694 source = "registry+https://github.com/rust-lang/crates.io-index"1703 source = "registry+https://github.com/rust-lang/crates.io-index"
1695-checksum = "abfcac41015b00a120608fdaa6938c44cb983fee294351cc4bac7638b4e50512"1704+checksum = "d079845b37af429bfe5dfa76e6d087d788031045b25cfc6fd898486fd9847666"
1696-dependencies = [
1697- "objc-sys",
1698-]
1699 1705
1700 [[package]]1706 [[package]]
1701 name = "once_cell"1707 name = "once_cell"
@@ -2029,9 +2035,9 @@ dependencies = [
2029 2035
2030 [[package]]2036 [[package]]
2031 name = "raw-window-handle"2037 name = "raw-window-handle"
2032-version = "0.5.2"2038+version = "0.6.0"
2033 source = "registry+https://github.com/rust-lang/crates.io-index"2039 source = "registry+https://github.com/rust-lang/crates.io-index"
2034-checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9"2040+checksum = "42a9830a0e1b9fb145ebb365b8bc4ccd75f290f98c0247deafbbe2c75cefb544"
2035 2041
2036 [[package]]2042 [[package]]
2037 name = "redox_syscall"2043 name = "redox_syscall"
@@ -2163,6 +2169,15 @@ dependencies = [
2163 "wait-timeout",2169 "wait-timeout",
2164 ]2170 ]
2165 2171
2172+[[package]]
2173+name = "same-file"
2174+version = "1.0.6"
2175+source = "registry+https://github.com/rust-lang/crates.io-index"
2176+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
2177+dependencies = [
2178+ "winapi-util",
2179+]
2180+
2166 [[package]]2181 [[package]]
2167 name = "scan_fmt"2182 name = "scan_fmt"
2168 version = "0.2.6"2183 version = "0.2.6"
@@ -2271,15 +2286,6 @@ dependencies = [
2271 "autocfg",2286 "autocfg",
2272 ]2287 ]
2273 2288
2274-[[package]]
2275-name = "slotmap"
2276-version = "1.0.6"
2277-source = "registry+https://github.com/rust-lang/crates.io-index"
2278-checksum = "e1e08e261d0e8f5c43123b7adf3e4ca1690d655377ac93a03b2c9d3e98de1342"
2279-dependencies = [
2280- "version_check",
2281-]
2282-
2283 [[package]]2289 [[package]]
2284 name = "smallvec"2290 name = "smallvec"
2285 version = "1.11.1"2291 version = "1.11.1"
@@ -2289,11 +2295,11 @@ checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
2289 [[package]]2295 [[package]]
2290 name = "smithay"2296 name = "smithay"
2291 version = "0.3.0"2297 version = "0.3.0"
2292-source = "git+https://github.com/Smithay/smithay.git#7e2e3c4975aae6ce8f83ac6f63205e244b6fda6e"2298+source = "git+https://github.com/Smithay/smithay.git#76c014a569fada77eed361feeb472ab7f9498232"
2293 dependencies = [2299 dependencies = [
2294 "appendlist",2300 "appendlist",
2295 "bitflags 2.4.1",2301 "bitflags 2.4.1",
2296- "calloop 0.12.3",2302+ "calloop",
2297 "cc",2303 "cc",
2298 "cgmath",2304 "cgmath",
2299 "cursor-icon",2305 "cursor-icon",
@@ -2324,43 +2330,58 @@ dependencies = [
2324 "udev 0.8.0",2330 "udev 0.8.0",
2325 "wayland-backend",2331 "wayland-backend",
2326 "wayland-egl",2332 "wayland-egl",
2327- "wayland-protocols 0.31.0",2333+ "wayland-protocols",
2328 "wayland-protocols-misc",2334 "wayland-protocols-misc",
2329 "wayland-protocols-wlr",2335 "wayland-protocols-wlr",
2330 "wayland-server",2336 "wayland-server",
2331- "wayland-sys 0.31.1",2337+ "wayland-sys",
2332 "winit",2338 "winit",
2333 "xkbcommon",2339 "xkbcommon",
2334 ]2340 ]
2335 2341
2336 [[package]]2342 [[package]]
2337 name = "smithay-client-toolkit"2343 name = "smithay-client-toolkit"
2338-version = "0.16.1"2344+version = "0.18.0"
2339 source = "registry+https://github.com/rust-lang/crates.io-index"2345 source = "registry+https://github.com/rust-lang/crates.io-index"
2340-checksum = "870427e30b8f2cbe64bf43ec4b86e88fe39b0a84b3f15efd9c9c2d020bc86eb9"2346+checksum = "60e3d9941fa3bacf7c2bf4b065304faa14164151254cd16ce1b1bc8fc381600f"
2341 dependencies = [2347 dependencies = [
2342- "bitflags 1.3.2",2348+ "bitflags 2.4.1",
2343- "calloop 0.10.6",2349+ "calloop",
2344- "dlib",2350+ "calloop-wayland-source",
2345- "lazy_static",2351+ "cursor-icon",
2352+ "libc",
2346 "log",2353 "log",
2347- "memmap2 0.5.10",2354+ "memmap2 0.9.0",
2348- "nix 0.24.3",2355+ "rustix 0.38.20",
2349- "pkg-config",2356+ "thiserror",
2357+ "wayland-backend",
2350 "wayland-client",2358 "wayland-client",
2359+ "wayland-csd-frame",
2351 "wayland-cursor",2360 "wayland-cursor",
2352- "wayland-protocols 0.29.5",2361+ "wayland-protocols",
2362+ "wayland-protocols-wlr",
2363+ "wayland-scanner",
2364+ "xkeysym",
2353 ]2365 ]
2354 2366
2355 [[package]]2367 [[package]]
2356 name = "smithay-drm-extras"2368 name = "smithay-drm-extras"
2357 version = "0.1.0"2369 version = "0.1.0"
2358-source = "git+https://github.com/Smithay/smithay.git#7e2e3c4975aae6ce8f83ac6f63205e244b6fda6e"2370+source = "git+https://github.com/Smithay/smithay.git#76c014a569fada77eed361feeb472ab7f9498232"
2359 dependencies = [2371 dependencies = [
2360 "drm",2372 "drm",
2361 "edid-rs",2373 "edid-rs",
2362 ]2374 ]
2363 2375
2376+[[package]]
2377+name = "smol_str"
2378+version = "0.2.0"
2379+source = "registry+https://github.com/rust-lang/crates.io-index"
2380+checksum = "74212e6bbe9a4352329b2f68ba3130c15a3f26fe88ff22dbdc6cdd58fa85e99c"
2381+dependencies = [
2382+ "serde",
2383+]
2384+
2364 [[package]]2385 [[package]]
2365 name = "socket2"2386 name = "socket2"
2366 version = "0.4.10"2387 version = "0.4.10"
@@ -2699,12 +2720,6 @@ version = "0.1.0"
2699 source = "registry+https://github.com/rust-lang/crates.io-index"2720 source = "registry+https://github.com/rust-lang/crates.io-index"
2700 checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"2721 checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
2701 2722
2702-[[package]]
2703-name = "vec_map"
2704-version = "0.8.2"
2705-source = "registry+https://github.com/rust-lang/crates.io-index"
2706-checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
2707-
2708 [[package]]2723 [[package]]
2709 name = "version-compare"2724 name = "version-compare"
2710 version = "0.1.1"2725 version = "0.1.1"
@@ -2732,6 +2747,16 @@ version = "1.1.1"
2732 source = "registry+https://github.com/rust-lang/crates.io-index"2747 source = "registry+https://github.com/rust-lang/crates.io-index"
2733 checksum = "f3c4517f54858c779bbcbf228f4fca63d121bf85fbecb2dc578cdf4a39395690"2748 checksum = "f3c4517f54858c779bbcbf228f4fca63d121bf85fbecb2dc578cdf4a39395690"
2734 2749
2750+[[package]]
2751+name = "walkdir"
2752+version = "2.4.0"
2753+source = "registry+https://github.com/rust-lang/crates.io-index"
2754+checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee"
2755+dependencies = [
2756+ "same-file",
2757+ "winapi-util",
2758+]
2759+
2735 [[package]]2760 [[package]]
2736 name = "wasi"2761 name = "wasi"
2737 version = "0.11.0+wasi-snapshot-preview1"2762 version = "0.11.0+wasi-snapshot-preview1"
@@ -2763,6 +2788,18 @@ dependencies = [
2763 "wasm-bindgen-shared",2788 "wasm-bindgen-shared",
2764 ]2789 ]
2765 2790
2791+[[package]]
2792+name = "wasm-bindgen-futures"
2793+version = "0.4.37"
2794+source = "registry+https://github.com/rust-lang/crates.io-index"
2795+checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03"
2796+dependencies = [
2797+ "cfg-if",
2798+ "js-sys",
2799+ "wasm-bindgen",
2800+ "web-sys",
2801+]
2802+
2766 [[package]]2803 [[package]]
2767 name = "wasm-bindgen-macro"2804 name = "wasm-bindgen-macro"
2768 version = "0.2.87"2805 version = "0.2.87"
@@ -2803,44 +2840,39 @@ dependencies = [
2803 "nix 0.26.4",2840 "nix 0.26.4",
2804 "scoped-tls",2841 "scoped-tls",
2805 "smallvec",2842 "smallvec",
2806- "wayland-sys 0.31.1",2843+ "wayland-sys",
2807 ]2844 ]
2808 2845
2809 [[package]]2846 [[package]]
2810 name = "wayland-client"2847 name = "wayland-client"
2811-version = "0.29.5"2848+version = "0.31.1"
2812 source = "registry+https://github.com/rust-lang/crates.io-index"2849 source = "registry+https://github.com/rust-lang/crates.io-index"
2813-checksum = "3f3b068c05a039c9f755f881dc50f01732214f5685e379829759088967c46715"2850+checksum = "1ca7d52347346f5473bf2f56705f360e8440873052e575e55890c4fa57843ed3"
2814 dependencies = [2851 dependencies = [
2815- "bitflags 1.3.2",2852+ "bitflags 2.4.1",
2816- "downcast-rs",2853+ "nix 0.26.4",
2817- "libc",2854+ "wayland-backend",
2818- "nix 0.24.3",2855+ "wayland-scanner",
2819- "scoped-tls",
2820- "wayland-commons",
2821- "wayland-scanner 0.29.5",
2822- "wayland-sys 0.29.5",
2823 ]2856 ]
2824 2857
2825 [[package]]2858 [[package]]
2826-name = "wayland-commons"2859+name = "wayland-csd-frame"
2827-version = "0.29.5"2860+version = "0.3.0"
2828 source = "registry+https://github.com/rust-lang/crates.io-index"2861 source = "registry+https://github.com/rust-lang/crates.io-index"
2829-checksum = "8691f134d584a33a6606d9d717b95c4fa20065605f798a3f350d78dced02a902"2862+checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
2830 dependencies = [2863 dependencies = [
2831- "nix 0.24.3",2864+ "bitflags 2.4.1",
2832- "once_cell",2865+ "cursor-icon",
2833- "smallvec",2866+ "wayland-backend",
2834- "wayland-sys 0.29.5",
2835 ]2867 ]
2836 2868
2837 [[package]]2869 [[package]]
2838 name = "wayland-cursor"2870 name = "wayland-cursor"
2839-version = "0.29.5"2871+version = "0.31.0"
2840 source = "registry+https://github.com/rust-lang/crates.io-index"2872 source = "registry+https://github.com/rust-lang/crates.io-index"
2841-checksum = "6865c6b66f13d6257bef1cd40cbfe8ef2f150fb8ebbdb1e8e873455931377661"2873+checksum = "a44aa20ae986659d6c77d64d808a046996a932aa763913864dc40c359ef7ad5b"
2842 dependencies = [2874 dependencies = [
2843- "nix 0.24.3",2875+ "nix 0.26.4",
2844 "wayland-client",2876 "wayland-client",
2845 "xcursor",2877 "xcursor",
2846 ]2878 ]
@@ -2852,19 +2884,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
2852 checksum = "355f652e5a24ae02d2ad536c8fc2d3dcc6c2bd635027cd6103a193e7d75eeda2"2884 checksum = "355f652e5a24ae02d2ad536c8fc2d3dcc6c2bd635027cd6103a193e7d75eeda2"
2853 dependencies = [2885 dependencies = [
2854 "wayland-backend",2886 "wayland-backend",
2855- "wayland-sys 0.31.1",2887+ "wayland-sys",
2856-]
2857-
2858-[[package]]
2859-name = "wayland-protocols"
2860-version = "0.29.5"
2861-source = "registry+https://github.com/rust-lang/crates.io-index"
2862-checksum = "b950621f9354b322ee817a23474e479b34be96c2e909c14f7bc0100e9a970bc6"
2863-dependencies = [
2864- "bitflags 1.3.2",
2865- "wayland-client",
2866- "wayland-commons",
2867- "wayland-scanner 0.29.5",
2868 ]2888 ]
2869 2889
2870 [[package]]2890 [[package]]
@@ -2875,7 +2895,8 @@ checksum = "e253d7107ba913923dc253967f35e8561a3c65f914543e46843c88ddd729e21c"
2875 dependencies = [2895 dependencies = [
2876 "bitflags 2.4.1",2896 "bitflags 2.4.1",
2877 "wayland-backend",2897 "wayland-backend",
2878- "wayland-scanner 0.31.0",2898+ "wayland-client",
2899+ "wayland-scanner",
2879 "wayland-server",2900 "wayland-server",
2880 ]2901 ]
2881 2902
@@ -2887,33 +2908,36 @@ checksum = "bfa5933740b200188c9b4c38601b8212e8c154d7de0d2cb171944e137a77de1e"
2887 dependencies = [2908 dependencies = [
2888 "bitflags 2.4.1",2909 "bitflags 2.4.1",
2889 "wayland-backend",2910 "wayland-backend",
2890- "wayland-protocols 0.31.0",2911+ "wayland-protocols",
2891- "wayland-scanner 0.31.0",2912+ "wayland-scanner",
2892 "wayland-server",2913 "wayland-server",
2893 ]2914 ]
2894 2915
2895 [[package]]2916 [[package]]
2896-name = "wayland-protocols-wlr"2917+name = "wayland-protocols-plasma"
2897 version = "0.2.0"2918 version = "0.2.0"
2898 source = "registry+https://github.com/rust-lang/crates.io-index"2919 source = "registry+https://github.com/rust-lang/crates.io-index"
2899-checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6"2920+checksum = "23803551115ff9ea9bce586860c5c5a971e360825a0309264102a9495a5ff479"
2900 dependencies = [2921 dependencies = [
2901 "bitflags 2.4.1",2922 "bitflags 2.4.1",
2902 "wayland-backend",2923 "wayland-backend",
2903- "wayland-protocols 0.31.0",2924+ "wayland-client",
2904- "wayland-scanner 0.31.0",2925+ "wayland-protocols",
2905- "wayland-server",2926+ "wayland-scanner",
2906 ]2927 ]
2907 2928
2908 [[package]]2929 [[package]]
2909-name = "wayland-scanner"2930+name = "wayland-protocols-wlr"
2910-version = "0.29.5"2931+version = "0.2.0"
2911 source = "registry+https://github.com/rust-lang/crates.io-index"2932 source = "registry+https://github.com/rust-lang/crates.io-index"
2912-checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53"2933+checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6"
2913 dependencies = [2934 dependencies = [
2914- "proc-macro2",2935+ "bitflags 2.4.1",
2915- "quote",2936+ "wayland-backend",
2916- "xml-rs",2937+ "wayland-client",
2938+ "wayland-protocols",
2939+ "wayland-scanner",
2940+ "wayland-server",
2917 ]2941 ]
2918 2942
2919 [[package]]2943 [[package]]
@@ -2938,18 +2962,7 @@ dependencies = [
2938 "io-lifetimes 2.0.2",2962 "io-lifetimes 2.0.2",
2939 "nix 0.26.4",2963 "nix 0.26.4",
2940 "wayland-backend",2964 "wayland-backend",
2941- "wayland-scanner 0.31.0",2965+ "wayland-scanner",
2942-]
2943-
2944-[[package]]
2945-name = "wayland-sys"
2946-version = "0.29.5"
2947-source = "registry+https://github.com/rust-lang/crates.io-index"
2948-checksum = "be12ce1a3c39ec7dba25594b97b42cb3195d54953ddb9d3d95a7c3902bc6e9d4"
2949-dependencies = [
2950- "dlib",
2951- "lazy_static",
2952- "pkg-config",
2953 ]2966 ]
2954 2967
2955 [[package]]2968 [[package]]
@@ -2962,6 +2975,7 @@ dependencies = [
2962 "libc",2975 "libc",
2963 "log",2976 "log",
2964 "memoffset 0.9.0",2977 "memoffset 0.9.0",
2978+ "once_cell",
2965 "pkg-config",2979 "pkg-config",
2966 ]2980 ]
2967 2981
@@ -2975,6 +2989,16 @@ dependencies = [
2975 "wasm-bindgen",2989 "wasm-bindgen",
2976 ]2990 ]
2977 2991
2992+[[package]]
2993+name = "web-time"
2994+version = "0.2.3"
2995+source = "registry+https://github.com/rust-lang/crates.io-index"
2996+checksum = "57099a701fb3a8043f993e8228dc24229c7b942e2b009a1b962e54489ba1d3bf"
2997+dependencies = [
2998+ "js-sys",
2999+ "wasm-bindgen",
3000+]
3001+
2978 [[package]]3002 [[package]]
2979 name = "winapi"3003 name = "winapi"
2980 version = "0.3.9"3004 version = "0.3.9"
@@ -2991,6 +3015,24 @@ version = "0.4.0"
2991 source = "registry+https://github.com/rust-lang/crates.io-index"3015 source = "registry+https://github.com/rust-lang/crates.io-index"
2992 checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"3016 checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2993 3017
3018+[[package]]
3019+name = "winapi-util"
3020+version = "0.1.6"
3021+source = "registry+https://github.com/rust-lang/crates.io-index"
3022+checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
3023+dependencies = [
3024+ "winapi",
3025+]
3026+
3027+[[package]]
3028+name = "winapi-wsapoll"
3029+version = "0.1.1"
3030+source = "registry+https://github.com/rust-lang/crates.io-index"
3031+checksum = "44c17110f57155602a80dca10be03852116403c9ff3cd25b079d666f2aa3df6e"
3032+dependencies = [
3033+ "winapi",
3034+]
3035+
2994 [[package]]3036 [[package]]
2995 name = "winapi-x86_64-pc-windows-gnu"3037 name = "winapi-x86_64-pc-windows-gnu"
2996 version = "0.4.0"3038 version = "0.4.0"
@@ -3140,36 +3182,49 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
3140 3182
3141 [[package]]3183 [[package]]
3142 name = "winit"3184 name = "winit"
3143-version = "0.28.7"3185+version = "0.29.2"
3144 source = "registry+https://github.com/rust-lang/crates.io-index"3186 source = "registry+https://github.com/rust-lang/crates.io-index"
3145-checksum = "9596d90b45384f5281384ab204224876e8e8bf7d58366d9b795ad99aa9894b94"3187+checksum = "b829f75d02fe1e225b97c91a04c326900147a50234d1141a1cbe215ce8798c11"
3146 dependencies = [3188 dependencies = [
3189+ "ahash",
3147 "android-activity",3190 "android-activity",
3148- "bitflags 1.3.2",3191+ "atomic-waker",
3192+ "bitflags 2.4.1",
3193+ "bytemuck",
3194+ "calloop",
3149 "cfg_aliases",3195 "cfg_aliases",
3150 "core-foundation",3196 "core-foundation",
3151 "core-graphics",3197 "core-graphics",
3152- "dispatch",3198+ "cursor-icon",
3153- "instant",3199+ "icrate",
3200+ "js-sys",
3154 "libc",3201 "libc",
3155 "log",3202 "log",
3156- "mio",3203+ "memmap2 0.9.0",
3157 "ndk",3204 "ndk",
3205+ "ndk-sys",
3158 "objc2",3206 "objc2",
3159 "once_cell",3207 "once_cell",
3160 "orbclient",3208 "orbclient",
3161 "percent-encoding",3209 "percent-encoding",
3162 "raw-window-handle",3210 "raw-window-handle",
3163 "redox_syscall 0.3.5",3211 "redox_syscall 0.3.5",
3212+ "rustix 0.38.20",
3164 "smithay-client-toolkit",3213 "smithay-client-toolkit",
3214+ "smol_str",
3215+ "unicode-segmentation",
3165 "wasm-bindgen",3216 "wasm-bindgen",
3217+ "wasm-bindgen-futures",
3218+ "wayland-backend",
3166 "wayland-client",3219 "wayland-client",
3167- "wayland-commons",3220+ "wayland-protocols",
3168- "wayland-protocols 0.29.5",3221+ "wayland-protocols-plasma",
3169- "wayland-scanner 0.29.5",
3170 "web-sys",3222 "web-sys",
3171- "windows-sys 0.45.0",3223+ "web-time",
3224+ "windows-sys 0.48.0",
3172 "x11-dl",3225 "x11-dl",
3226+ "x11rb",
3227+ "xkbcommon-dl",
3173 ]3228 ]
3174 3229
3175 [[package]]3230 [[package]]
@@ -3192,6 +3247,32 @@ dependencies = [
3192 "pkg-config",3247 "pkg-config",
3193 ]3248 ]
3194 3249
3250+[[package]]
3251+name = "x11rb"
3252+version = "0.12.0"
3253+source = "registry+https://github.com/rust-lang/crates.io-index"
3254+checksum = "b1641b26d4dec61337c35a1b1aaf9e3cba8f46f0b43636c609ab0291a648040a"
3255+dependencies = [
3256+ "as-raw-xcb-connection",
3257+ "gethostname",
3258+ "libc",
3259+ "libloading 0.7.4",
3260+ "nix 0.26.4",
3261+ "once_cell",
3262+ "winapi",
3263+ "winapi-wsapoll",
3264+ "x11rb-protocol",
3265+]
3266+
3267+[[package]]
3268+name = "x11rb-protocol"
3269+version = "0.12.0"
3270+source = "registry+https://github.com/rust-lang/crates.io-index"
3271+checksum = "82d6c3f9a0fb6701fab8f6cea9b0c0bd5d6876f1f89f7fada07e558077c344bc"
3272+dependencies = [
3273+ "nix 0.26.4",
3274+]
3275+
3195 [[package]]3276 [[package]]
3196 name = "xcursor"3277 name = "xcursor"
3197 version = "0.3.4"3278 version = "0.3.4"
@@ -3222,6 +3303,19 @@ dependencies = [
3222 "xkeysym",3303 "xkeysym",
3223 ]3304 ]
3224 3305
3306+[[package]]
3307+name = "xkbcommon-dl"
3308+version = "0.4.1"
3309+source = "registry+https://github.com/rust-lang/crates.io-index"
3310+checksum = "6924668544c48c0133152e7eec86d644a056ca3d09275eb8d5cdb9855f9d8699"
3311+dependencies = [
3312+ "bitflags 2.4.1",
3313+ "dlib",
3314+ "log",
3315+ "once_cell",
3316+ "xkeysym",
3317+]
3318+
3225 [[package]]3319 [[package]]
3226 name = "xkeysym"3320 name = "xkeysym"
3227 version = "0.2.0"3321 version = "0.2.0"
src/backend/winit.rsmodified+25 -36
@@ -8,9 +8,8 @@ use std::time::Duration;
8 use smithay::backend::renderer::damage::OutputDamageTracker;8 use smithay::backend::renderer::damage::OutputDamageTracker;
9 use smithay::backend::renderer::gles::GlesRenderer;9 use smithay::backend::renderer::gles::GlesRenderer;
10 use smithay::backend::renderer::{DebugFlags, Renderer};10 use smithay::backend::renderer::{DebugFlags, Renderer};
11-use smithay::backend::winit::{self, WinitError, WinitEvent, WinitGraphicsBackend};11+use smithay::backend::winit::{self, WinitEvent, WinitGraphicsBackend};
12 use smithay::output::{Mode, Output, PhysicalProperties, Scale, Subpixel};12 use smithay::output::{Mode, Output, PhysicalProperties, Scale, Subpixel};
13-use smithay::reexports::calloop::timer::{TimeoutAction, Timer};
14 use smithay::reexports::calloop::LoopHandle;13 use smithay::reexports::calloop::LoopHandle;
15 use smithay::reexports::wayland_protocols::wp::presentation_time::server::wp_presentation_feedback;14 use smithay::reexports::wayland_protocols::wp::presentation_time::server::wp_presentation_feedback;
16 use smithay::reexports::winit::dpi::LogicalSize;15 use smithay::reexports::winit::dpi::LogicalSize;
@@ -37,7 +36,7 @@ impl Winit {
37 .with_inner_size(LogicalSize::new(1280.0, 800.0))36 .with_inner_size(LogicalSize::new(1280.0, 800.0))
38 // .with_resizable(false)37 // .with_resizable(false)
39 .with_title("niri");38 .with_title("niri");
40- let (backend, mut winit_event_loop) = winit::init_from_builder(builder).unwrap();39+ let (backend, winit) = winit::init_from_builder(builder).unwrap();
41 40
42 let output_config = config41 let output_config = config
43 .borrow()42 .borrow()
@@ -50,7 +49,7 @@ impl Winit {
50 let scale = scale.max(1.).round() as i32;49 let scale = scale.max(1.).round() as i32;
51 50
52 let mode = Mode {51 let mode = Mode {
53- size: backend.window_size().physical_size,52+ size: backend.window_size(),
54 refresh: 60_000,53 refresh: 60_000,
55 };54 };
56 55
@@ -78,40 +77,30 @@ impl Winit {
78 77
79 let damage_tracker = OutputDamageTracker::from_output(&output);78 let damage_tracker = OutputDamageTracker::from_output(&output);
80 79
81- let timer = Timer::immediate();
82 event_loop80 event_loop
83- .insert_source(timer, move |_, _, state| {81+ .insert_source(winit, move |event, _, state| match event {
84- let res = winit_event_loop.dispatch_new_events(|event| match event {82+ WinitEvent::Resized { size, .. } => {
85- WinitEvent::Resized { size, .. } => {83+ let winit = state.backend.winit();
86- let winit = state.backend.winit();84+ winit.output.change_current_state(
87- winit.output.change_current_state(85+ Some(Mode {
88- Some(Mode {86+ size,
89- size,87+ refresh: 60_000,
90- refresh: 60_000,88+ }),
91- }),89+ None,
92- None,90+ None,
93- None,91+ None,
94- None,92+ );
95- );93+ state.niri.output_resized(winit.output.clone());
96- state.niri.output_resized(winit.output.clone());94+ }
97- }95+ WinitEvent::Input(event) => state.process_input_event(event),
98- WinitEvent::Input(event) => state.process_input_event(event),96+ WinitEvent::Focus(_) => (),
99- WinitEvent::Focus(_) => (),97+ WinitEvent::Redraw => state
100- WinitEvent::Refresh => state98+ .niri
101- .niri99+ .queue_redraw(state.backend.winit().output.clone()),
102- .queue_redraw(state.backend.winit().output.clone()),100+ WinitEvent::CloseRequested => {
103- });101+ state.niri.stop_signal.stop();
104-102+ state.niri.remove_output(&state.backend.winit().output);
105- // I want this to stop compiling if more errors are added.
106- #[allow(clippy::single_match)]
107- match res {
108- Err(WinitError::WindowClosed) => {
109- state.niri.stop_signal.stop();
110- state.niri.remove_output(&state.backend.winit().output);
111- }
112- Ok(()) => (),
113 }103 }
114- TimeoutAction::ToDuration(Duration::from_micros(16667))
115 })104 })
116 .unwrap();105 .unwrap();
117 106
src/handlers/mod.rsmodified+6 -1
@@ -10,7 +10,7 @@ use std::thread;
10 10
11 use smithay::backend::allocator::dmabuf::Dmabuf;11 use smithay::backend::allocator::dmabuf::Dmabuf;
12 use smithay::backend::renderer::ImportDma;12 use smithay::backend::renderer::ImportDma;
13-use smithay::desktop::PopupKind;13+use smithay::desktop::{PopupKind, PopupManager};
14 use smithay::input::pointer::CursorImageStatus;14 use smithay::input::pointer::CursorImageStatus;
15 use smithay::input::{Seat, SeatHandler, SeatState};15 use smithay::input::{Seat, SeatHandler, SeatState};
16 use smithay::output::Output;16 use smithay::output::Output;
@@ -75,6 +75,11 @@ impl InputMethodHandler for State {
75 warn!("error tracking ime popup {err:?}");75 warn!("error tracking ime popup {err:?}");
76 }76 }
77 }77 }
78+ fn dismiss_popup(&mut self, surface: PopupSurface) {
79+ if let Some(parent) = surface.get_parent().map(|parent| parent.surface.clone()) {
80+ let _ = PopupManager::dismiss_popup(&parent, &PopupKind::from(surface));
81+ }
82+ }
78 fn parent_geometry(&self, parent: &WlSurface) -> Rectangle<i32, Logical> {83 fn parent_geometry(&self, parent: &WlSurface) -> Rectangle<i32, Logical> {
79 self.niri84 self.niri
80 .layout85 .layout