Commit graph

20 commits

Author SHA1 Message Date
Ottatop
dbccfa9c76 Expose keyboard focus stack to API 2024-05-15 21:24:20 -05:00
Ottatop
55a0379697 Finalize pointer constraints
While this initial implementation is done and I'm pretty happy with it, there are still 2 problems:
1. The cursor is not warped to the hinted position when a locked pointer constraint is removed. This may require an update to Smithay to expose a `PointerConstraintsHandler::constraint_removed` method.
2. The cursor may jump between two close constraint regions if it's moved fast enough. This can be fixed by possibly doing a ray cast or something.
2024-05-01 19:18:31 -05:00
Ottatop
b99cc8ffce Move impls to Pinnacle 2024-04-26 19:58:02 -05:00
Ottatop
8aaec59452 Split off backend and rest of State
Currently doesn't clean up anything, still need to change `impl State`s to `impl Pinnacle`s
2024-04-26 18:43:18 -05:00
Leon Vack
13df2d161b Fix lua tests hanging 2024-04-25 11:07:32 +02:00
Ottatop
7e80a6a64f Update test infrastructure
Extracts the dummy output name into a const. Unfortunately I still need a way to interpolate that into Lua strings. Also fixes possible hangs when Lua crashes
2024-04-24 21:37:17 -05:00
Ottatop
6da1967b3d Scaffold xtasks
NOT DONE, don't use it yet
2024-04-21 14:25:35 -05:00
Ottatop
2aca29fe7c Revert "Use mlua for Lua tests"
This reverts commit 78eb41ef51.

Can't get the github runner not to block when running tests, fun
2024-04-20 21:35:40 -05:00
Ottatop
78eb41ef51 Use mlua for Lua tests 2024-04-20 19:17:43 -05:00
Ottatop
a8f393deb3 Improve Lua output setup API
I really like this compared to the previous iteration
2024-04-17 21:22:54 -05:00
Ottatop
6c8b643577 Add OutputHandle::set_transform 2024-04-16 21:30:59 -05:00
Ottatop
f6ad192c86 Finish Lua setup and setup_locs 2024-04-16 19:25:59 -05:00
Ottatop
f557afcaa1 Start on Rust API tests
Does not currently work because every api struct is a static, yikes
2024-04-16 07:04:34 -05:00
Ottatop
ce8b56eee8 Add Output::setup
Still needs polishing and more importantly testing, also the Lua impl isn't finished yet
2024-04-15 15:50:09 -05:00
Ottatop
6d78436d18 Add TagHandle::windows 2024-04-12 07:57:22 -05:00
Ottatop
220be6d505 Move tests into separate mods 2024-04-11 12:35:48 -05:00
Ottatop
8d3bbf28f8 Add Pinnacle.run and use for tests 2024-03-23 01:39:07 -05:00
Ottatop
13ea0a683b Change TagId back to struct 2024-03-12 19:18:27 -05:00
Ottatop
140b0200aa Add some tests
First ever squash no clue what I'm doing
2024-03-11 19:39:41 -05:00
Ottatop
6d83e34868 Setup Lua API integration tests 2024-03-06 18:50:45 -06:00