Commit 5466ab6
CursorWrap improvements (#44936)
## Summary of the Pull Request
- Updated engine for better multi-monitor support.
- Closing the laptop lid will now update the monitor topology
- New settings/dropdown to support wrapping on horizontal, vertical, or
both
<img width="1103" height="643" alt="image"
src="https://github.com/user-attachments/assets/ff4f0835-a8ca-4603-9441-123b71747d5c"
/>
<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist
- [x] Closes: #44820
- [x] Closes: #44864
- [x] Closes: #44952
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx
## Detailed Description of the Pull Request / Additional comments
Feedback for CursorWrap shows that users want the ability to constrain
wrapping for horizontal only, vertical only, or both (default behavior).
This PR adds a new dropdown to CursorWrap settings to enable a user to
select the appropriate wrapping model.
## Validation Steps Performed
Local build and running on Surface Laptop 7 Pro - will also validate on
a multi-monitor setup.
---------
Co-authored-by: vanzue <vanzue@outlook.com>1 parent bf19bdc commit 5466ab6
File tree
12 files changed
+1242
-817
lines changed- .github/actions/spell-check
- src
- modules/MouseUtils/CursorWrap
- settings-ui
- Settings.UI.Library
- Settings.UI
- SettingsXAML/Views
- Strings/en-us
- ViewModels
12 files changed
+1242
-817
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | | - | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| 346 | + | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
365 | 368 | | |
366 | 369 | | |
367 | 370 | | |
368 | | - | |
369 | | - | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
| |||
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
391 | 396 | | |
392 | 397 | | |
393 | 398 | | |
| 399 | + | |
394 | 400 | | |
| 401 | + | |
395 | 402 | | |
396 | 403 | | |
397 | | - | |
398 | 404 | | |
| 405 | + | |
399 | 406 | | |
400 | 407 | | |
401 | 408 | | |
| |||
538 | 545 | | |
539 | 546 | | |
540 | 547 | | |
541 | | - | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
| |||
559 | 565 | | |
560 | 566 | | |
561 | 567 | | |
| 568 | + | |
562 | 569 | | |
563 | 570 | | |
564 | 571 | | |
| |||
660 | 667 | | |
661 | 668 | | |
662 | 669 | | |
| 670 | + | |
663 | 671 | | |
664 | 672 | | |
665 | 673 | | |
666 | 674 | | |
667 | 675 | | |
668 | | - | |
669 | 676 | | |
| 677 | + | |
670 | 678 | | |
671 | 679 | | |
672 | 680 | | |
| |||
742 | 750 | | |
743 | 751 | | |
744 | 752 | | |
| 753 | + | |
745 | 754 | | |
746 | 755 | | |
747 | | - | |
748 | 756 | | |
749 | 757 | | |
750 | 758 | | |
| |||
835 | 843 | | |
836 | 844 | | |
837 | 845 | | |
838 | | - | |
839 | 846 | | |
| 847 | + | |
840 | 848 | | |
841 | 849 | | |
842 | 850 | | |
| |||
923 | 931 | | |
924 | 932 | | |
925 | 933 | | |
| 934 | + | |
926 | 935 | | |
927 | 936 | | |
928 | | - | |
929 | 937 | | |
930 | 938 | | |
931 | 939 | | |
| |||
941 | 949 | | |
942 | 950 | | |
943 | 951 | | |
| 952 | + | |
944 | 953 | | |
945 | 954 | | |
946 | 955 | | |
| |||
950 | 959 | | |
951 | 960 | | |
952 | 961 | | |
953 | | - | |
954 | 962 | | |
955 | 963 | | |
956 | 964 | | |
| |||
994 | 1002 | | |
995 | 1003 | | |
996 | 1004 | | |
| 1005 | + | |
997 | 1006 | | |
998 | 1007 | | |
999 | 1008 | | |
1000 | 1009 | | |
1001 | 1010 | | |
1002 | 1011 | | |
1003 | | - | |
1004 | 1012 | | |
1005 | 1013 | | |
1006 | 1014 | | |
| |||
1037 | 1045 | | |
1038 | 1046 | | |
1039 | 1047 | | |
| 1048 | + | |
1040 | 1049 | | |
1041 | 1050 | | |
1042 | 1051 | | |
| |||
1080 | 1089 | | |
1081 | 1090 | | |
1082 | 1091 | | |
| 1092 | + | |
1083 | 1093 | | |
1084 | 1094 | | |
1085 | | - | |
1086 | 1095 | | |
1087 | 1096 | | |
1088 | 1097 | | |
| |||
1092 | 1101 | | |
1093 | 1102 | | |
1094 | 1103 | | |
1095 | | - | |
1096 | | - | |
1097 | 1104 | | |
1098 | 1105 | | |
1099 | 1106 | | |
| 1107 | + | |
| 1108 | + | |
1100 | 1109 | | |
1101 | 1110 | | |
1102 | 1111 | | |
| |||
1237 | 1246 | | |
1238 | 1247 | | |
1239 | 1248 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | 1249 | | |
| 1250 | + | |
1244 | 1251 | | |
1245 | 1252 | | |
1246 | 1253 | | |
| |||
1456 | 1463 | | |
1457 | 1464 | | |
1458 | 1465 | | |
1459 | | - | |
1460 | 1466 | | |
1461 | 1467 | | |
1462 | 1468 | | |
| |||
1485 | 1491 | | |
1486 | 1492 | | |
1487 | 1493 | | |
| 1494 | + | |
1488 | 1495 | | |
1489 | 1496 | | |
1490 | 1497 | | |
| |||
1518 | 1525 | | |
1519 | 1526 | | |
1520 | 1527 | | |
1521 | | - | |
1522 | 1528 | | |
| 1529 | + | |
1523 | 1530 | | |
1524 | 1531 | | |
1525 | 1532 | | |
| |||
1757 | 1764 | | |
1758 | 1765 | | |
1759 | 1766 | | |
1760 | | - | |
1761 | | - | |
| 1767 | + | |
1762 | 1768 | | |
1763 | 1769 | | |
1764 | 1770 | | |
| |||
1777 | 1783 | | |
1778 | 1784 | | |
1779 | 1785 | | |
1780 | | - | |
1781 | | - | |
| 1786 | + | |
1782 | 1787 | | |
1783 | 1788 | | |
1784 | 1789 | | |
| |||
1882 | 1887 | | |
1883 | 1888 | | |
1884 | 1889 | | |
1885 | | - | |
1886 | 1890 | | |
1887 | 1891 | | |
| 1892 | + | |
1888 | 1893 | | |
1889 | 1894 | | |
1890 | 1895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
93 | 96 | | |
94 | | - | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
0 commit comments