Commit graph

188 commits

Author SHA1 Message Date
3f946d4f5c
Merge branch 'hook-w-arbitrary-args' into dev 2025-11-25 16:51:22 -05:00
0bb1ba2963
we can now pass arbitrary zig data to lua through hooks 2025-11-25 16:50:17 -05:00
91578d583a
rename mez.hook.add_hook -> mez.hook.add 2025-11-25 16:50:02 -05:00
d255f63ac7
generate if branching for modifier keys at comptime 2025-11-25 16:49:37 -05:00
08d7f1f176
default view moving shouldn't clamp to the visible area 2025-11-25 16:49:37 -05:00
96865dcfa3
remove duplicate function 2025-11-25 16:49:37 -05:00
514db29d7e
update log statement 2025-11-25 16:49:37 -05:00
e142b6027f
fix crashing when a view is resized too small
this is done by limiting to a minimum of 10x10 pixels, we may make this
configurable using lua in the future
2025-11-25 16:49:37 -05:00
Harrison DiAmbrosio
47bcce621d
lua position, size, focus and z-index (not really) 2025-11-25 16:49:31 -05:00
2c130539f6
intial setup for passing arbitrary data to hooks 2025-11-25 16:48:49 -05:00
Harrison DiAmbrosio
3eea990e3f view focus issue 2025-11-25 16:23:11 -05:00
Harrison DiAmbrosio
b3b83fd287 w merge by me <3 2025-11-25 16:02:25 -05:00
Harrison DiAmbrosio
1eda05b7b3 lua position, size, focus and z-index (not really) 2025-11-25 16:01:38 -05:00
f9b9d41402
rename mez.hook.add_hook -> mez.hook.add 2025-11-23 21:05:29 -05:00
4fff609df9
generate if branching for modifier keys at comptime 2025-11-23 17:08:44 -05:00
36afbe0832
default view moving shouldn't clamp to the visible area 2025-11-22 20:46:57 -05:00
746ec6ba6f
remove duplicate function 2025-11-22 18:49:46 -05:00
c5e566736a
update log statement 2025-11-22 18:48:16 -05:00
9648dc7872
fix crashing when a view is resized too small
this is done by limiting to a minimum of 10x10 pixels, we may make this
configurable using lua in the future
2025-11-22 18:27:41 -05:00
eeb6bf2278
rename WinMap{Pre,Post} to ViewMap{Pre,Post} cause View is better 2025-11-21 23:34:08 -05:00
41cbe17262
cleanup the keymap stuff 2025-11-21 23:32:03 -05:00
b3322eeb90
inital support for hooks...
Currently the following hooks are available:
 - WinMapPre
 - WinMapPost
2025-11-21 23:30:21 -05:00
Harrison DiAmbrosio
b45544c97a im back baby 2025-11-07 22:32:22 -05:00
3b6685c25f make keybind handling much much safer 2025-10-26 22:52:05 -04:00
78da941645 remove unneeded scene_ouput destroy 2025-10-26 22:51:32 -04:00
0dad842be1 make sure everything is removed on output destroy 2025-10-26 22:21:11 -04:00
0c6d51028a fix crashing when return from vt switching away 2025-10-26 22:20:11 -04:00
db3020f370 cleanup ordering of output code and remove duplicate call to add to the
output_layout
2025-10-26 22:16:20 -04:00
cb947c15e3 remove all keyboard listeners on destroy 2025-10-26 22:09:01 -04:00
Harrison DiAmbrosio
13a91c15f0 Merge branch 'main' of https://github.com/EggbertFluffle/Mezzaluna
it must be done
2025-10-26 21:17:32 -04:00
Harrison DiAmbrosio
d9ebb6197d keyboard groups work in drm mode 2025-10-26 21:17:23 -04:00
de54d9867d you can now delete keymaps via the api 2025-10-26 19:07:39 -04:00
f710bae5f5 terminate properly instead of just deiniting everthing 2025-10-26 12:58:18 -04:00
591aa73bed we can now switch vts 2025-10-26 12:53:44 -04:00
Harrison DiAmbrosio
976900ffa6 removed all windows decorations properly, added window closing and compositor exiting as well as view focusing 2025-10-25 18:50:06 -04:00
f636efdfe9
fix merge breaking stuff 2025-10-24 23:53:56 -04:00
Harrison DiAmbrosio
3cf05f2d9a merged 2025-10-24 23:45:11 -04:00
Harrison DiAmbrosio
2e2cfeebae added process spawning 2025-10-24 23:43:11 -04:00
cc0862adae
update keymap func 2025-10-24 22:48:22 -04:00
Harrison DiAmbrosio
23ef0049f7 resizing and movement prototype done 2025-10-24 21:47:15 -04:00
Harrison DiAmbrosio
36b89b04d0 very basic window movement bound to alt-left 2025-10-24 17:24:41 -04:00
Harrison DiAmbrosio
17cdbae175 merged 2025-10-23 23:30:54 -04:00
Harrison DiAmbrosio
bb669b2d9a rewriting cursor controls 2025-10-23 23:29:38 -04:00
faa44dc4af
implement keymaps! they still have quite a bit of work to be any good...
but now our key do stuff when pressed (at the compositor level)
2025-10-23 23:24:49 -04:00
Harrison DiAmbrosio
b328c0a7c7 more error handling and oranization 2025-10-23 13:30:59 -04:00
Harrison DiAmbrosio
609ee42d66 cleaning up code, adding support for workspaces, and handling errors 2025-10-22 23:40:19 -04:00
8e4f56d147
add a basic filesystem library and use it for path concat 2025-10-22 22:40:19 -04:00
9e55195f8d
we're now loading a config file! 2025-10-22 14:23:30 -04:00
86a01bbcf2
load a runtime file where the prefix is determined at comptime 2025-10-20 22:53:17 -04:00
Harrison DiAmbrosio
6bfebb0e37 created listeners and empty event handlers for resizing and moving windows 2025-10-20 19:16:10 -04:00