Commit graph

956 commits

Author SHA1 Message Date
Ottatop
9382601444 Fix pointer clamping
The previous clamp logic allowed very small pointer motions to break free of pointer constraints at the right and bottom edges
2024-05-01 18:16:11 -05:00
Ottatop
98b4e0aea2 Simplify confined pointer region logic 2024-05-01 14:47:57 -05:00
Ottatop
4b3839e380 Fix pointer clamping regression and also update Smithay 2024-04-27 21:26:54 -05:00
Ottatop
058350db43 Make confined region work
Currently does not work with confines with no region. Also there *might* be a regression that prevents the mouse from moving between outputs, need to test that
2024-04-27 19:13:53 -05:00
Ottatop
1543b64fb8 Add pointer constraints
Needs more work and testing
2024-04-27 17:02:19 -05:00
Ottatop
4eb29c49dc Close layer surfaces on output removal
Fixes mako not making new notifications if one is sent during sleep
2024-04-27 12:51:03 -05:00
Ottatop
b8098f4d45 Add wlcs to justfile, add tag in wlcs config 2024-04-27 00:29:27 -05:00
Ottatop
8c0bce7191 Separate stuff that took in State
I love me some non-overlapping borrows
2024-04-26 20:25:40 -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
Ottatop
c9012cf483 Improve logging
Use better env filters, log panics, and make logging to files not use color escapes
2024-04-26 14:56:12 -05:00
Ottatop
a21eb9bcec
Merge pull request #204 from LogicalOverflow/wlcs
Add wlcs tests

Big thanks to @LogicalOverflow!
2024-04-26 13:06:48 -05:00
Ottatop
612b1ccda0 Add wlcs compilation script 2024-04-26 13:03:17 -05:00
Leon Vack
bdcac3b016 Cleanup up dependencies 2024-04-26 10:27:11 +02:00
Leon Vack
29e7d7bd5f Make clippy happy 2024-04-25 11:17:43 +02:00
Leon Vack
13df2d161b Fix lua tests hanging 2024-04-25 11:07:32 +02:00
Leon Vack
194da9e557 Float all windows for tests and improve window positioning 2024-04-25 10:48:37 +02:00
Leon Vack
0b353c45f2 Use an embedded config for tests 2024-04-25 10:48:37 +02:00
Leon Vack
c0fe55003b Fix xwayland and cleanup 2024-04-25 10:48:37 +02:00
Leon Vack
abb21d9924 Perform wlcs interactions using an InputBackend 2024-04-25 10:48:37 +02:00
Leon Vack
fb8b6e166c Clean up some stuff and move the config for wlcs tests 2024-04-25 10:48:37 +02:00
Leon Vack
e8b8a33bfc Make wlcs run some actual tests 2024-04-25 10:48:36 +02:00
Leon Vack
7adcb1d729 Make wlcs start 2024-04-25 10:47:48 +02:00
Leon Vack
bb832ae885 Add wlcs stub 2024-04-25 10:47:44 +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
e2232fb56c Don't add modes with add_mode
Doing so adds non-current modes to the output (which are deprecated) and causes smithay to send them to `wl_output` consumers. Caused swww to open at the wrong size
2024-04-24 20:47:47 -05:00
Ottatop
3e7ef6d079 Support Lua down to 5.2 2024-04-24 20:01:04 -05:00
Ottatop
ef47a9f8c5 Remove xtasks 2024-04-24 18:50:31 -05:00
Ottatop
9f97fab0ab
Merge pull request #219 from pinnacle-comp/justfile
Add justfile and nuke build.rs
2024-04-24 18:46:19 -05:00
Ottatop
36a82245a7 Fix tests
Unwrap in tests to check error

Add backtrace to debug tests

Add dbg

i hate this

debugging github actions is a pain

aaaa

aaaaaaaaa

needs to be rebased
2024-04-24 18:33:44 -05:00
Ottatop
9f4b1a0d7b Obliterate build.rs 2024-04-24 18:33:44 -05:00
Ottatop
827ce1ecd7 README: include just usage 2024-04-24 18:33:44 -05:00
Ottatop
29363c3676 Add root installs
NOTE: Pinnacle currently does not search root dirs for stuff like the protobuf definitions, this is just for packaging and stuff
2024-04-24 18:33:44 -05:00
Ottatop
1d07e2a122 Add justfile
Need to add installs for root user
2024-04-24 18:33:44 -05:00
Ottatop
ce22883125 Return instead of asserting 2024-04-23 19:41:26 -05:00
Ottatop
60e5910bfc
README: update default loaded config 2024-04-23 01:02:30 -05:00
Ottatop
478b9f7455
Merge pull request #216 from pinnacle-comp/embed_rust_config
Embed default rust config in binary
2024-04-22 21:24:16 -05:00
Ottatop
4eb13b772c README: fix line 2024-04-22 21:20:05 -05:00
Ottatop
45bf9b698c Move state clearing on config start to front 2024-04-22 21:17:51 -05:00
Ottatop
bf92d12795 README: update for removal of luarocks from build 2024-04-22 21:15:12 -05:00
Ottatop
52dfd476de Run luarocks make in test ci 2024-04-22 20:54:47 -05:00
Ottatop
1b09fe94ee Remove luarock from build.rs 2024-04-22 20:45:42 -05:00
Ottatop
ac15e2d566 Fix Rust API not exiting correctly
My goodness was that not fun to debug
2024-04-22 20:34:06 -05:00
Ottatop
43891a2a48 Ignore layout stream errors 2024-04-22 14:14:22 -05:00
Ottatop
f54516bbe3 Embed default rust config
Need to clean up how the Rust API handles shutdown signals
2024-04-21 23:45:03 -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
6f6b91f4f8 Use tokio tasks instead of threads
why is the github runner blocking on tests, it doesn't on my machine
2024-04-20 21:25:53 -05:00
Ottatop
931822976e Don't install lua using apt, install the lib instead 2024-04-20 19:38:20 -05:00
Ottatop
611451b717 Install mlua using apt 2024-04-20 19:36:25 -05:00