Commit graph

122 commits

Author SHA1 Message Date
buffet
a107bda0be Change make kiwmi an object, use pcall for Lua functions 2019-12-31 15:19:42 +00:00
buffet
951dcaf0a3 Change on_cursor_button's callbacks parameter to a table 2019-12-31 13:46:21 +00:00
Tadeo Kondrak
096c470571
Implement view:move() 2019-12-30 23:06:58 -07:00
Tadeo Kondrak
714038e0f4
Fix crash on unmap
The complete type unsafety of wl_container_of strikes again.
2019-12-30 22:30:08 -07:00
Tadeo Kondrak
3104a7c545
Pass arguments to on("cursor_button")
Loses the genericity, but I don't think we have a choice.
2019-12-30 22:30:07 -07:00
Tadeo Kondrak
f3190f2eb8
Rename focus_view to view_focus
For consistency with the other functions.
2019-12-30 22:24:58 -07:00
Tadeo Kondrak
62daa5383c
Remove focus on click
It's a config responsibility now.
2019-12-30 22:24:53 -07:00
Tadeo Kondrak
440adaaaff
Add ForEachMacros to .clang-format
So it doesn't add a linebreak after them.
2019-12-30 21:46:50 -07:00
buffet
eda1fc566d Fix callback leak 2019-12-31 00:25:20 +00:00
buffet
3a5ed32a6c Add luaK_fini 2019-12-31 00:09:06 +00:00
buffet
57a3b2c46e Add Lua library
For now only kiwmi.on, kiwmi.quit, kiwmi.view_under_cursor,
kiwmi_view:close, lua_callback:cancel, and cursor_button events.
2019-12-30 23:33:07 +00:00
buffet
0405fbe14d Add view_close 2019-12-30 23:23:35 +00:00
buffet
1e49f076d5 Rename request_set_cursor to seat_request_set_cursor 2019-12-29 13:03:54 +00:00
buffet
e2c9847c28 Merge branch 'cursor-image-handling' of git://github.com/tadeokondrak/kiwmi into tadeokondrak-cursor-image-handling 2019-12-29 13:00:45 +00:00
Tadeo Kondrak
351e5ed6d7 Add support for cursor axis and frame events (#15)
For scrolling support.
2019-12-29 11:10:51 +00:00
Tadeo Kondrak
5892347df4 Fix lack of return from function (#14) 2019-12-29 10:39:53 +00:00
Tadeo Kondrak
f2db00a996
Verify focus on cursor image changes 2019-12-29 01:26:29 -07:00
Tadeo Kondrak
7f9b9748ea
Basic implementation of request_set_cursor
Requires moving wlr_seat initialization above cursor creation, so we can
add listeners to it. Currently does no verification that the client
actually has focus.
2019-12-29 01:26:28 -07:00
buffet
a25ff1957b Add basic cursor handling (including focusing clients) 2019-12-26 20:55:10 +00:00
buffet
1d61d1ac1a Move view creation code into view_create 2019-12-24 17:09:16 +00:00
buffet
81497b76c5 Move wl_list_remove(view::link) to the top of the bunch 2019-12-24 16:09:22 +00:00
buffet
abda3d3a0e Add auto focus for views and basic keyboard handling 2019-12-24 15:43:36 +00:00
buffet
1931dcc605 Fix view staying in view list, even after destroyed 2019-12-24 15:41:23 +00:00
buffet
be373177db Support xdg-shell and add basic rendering 2019-12-21 14:10:50 +00:00
buffet
389dd00d83 Change free, malloc to realloc 2019-12-11 13:46:09 +00:00
buffet
886b11f6bc Add protocols (xdg-shell) 2019-12-10 23:37:43 +00:00
buffet
228b70beab Style changes 2019-12-04 16:55:25 +00:00
buffet
c9a53e3557 Add screenshot support 2019-12-04 16:54:46 +00:00
buffet
7bef31c635 Change fallback render color to something more visible 2019-11-28 18:30:49 +00:00
buffet
9b2cd6b985 Add Lua config without kiwmi lib 2019-10-18 23:32:38 +02:00
buffet
feb8dfc7f4 Add config path default 2019-10-18 22:42:30 +02:00
buffet
40b7907d72 Delete frontend, add config 2019-10-16 19:05:30 +02:00
buffet
c7d8993ad8 Updated to wlr 0.6 2019-07-10 22:11:14 +02:00
buffet
83a3fddbcd Move type declaration for cmd_handlers up 2019-05-03 09:18:55 +02:00
buffet
5c8783dc93 Fixed zombification 2019-04-17 17:40:56 +02:00
buffet
d635bb2658 clang-format 2019-04-15 11:37:37 +02:00
buffet
d8ca169133 Basic command handling (without arguments) 2019-04-14 17:06:38 +02:00
buffet
6581d7470e read first, then do all commands 2019-04-13 15:30:49 +02:00
buffet
41fe4c26ae ready for command handling 2019-04-12 14:28:27 +02:00
buffet
9b8dd04038 dont need NON_BLOCK 2019-04-12 13:01:31 +02:00
buffet
9ed779417f removed log i added by accident 2019-04-10 11:41:47 +02:00
buffet
e1cd29ba86 Server socket implementation 2019-04-08 18:10:37 +02:00
buffet
2f444a9e4f Added check for XDG_RUNTIME_DIR 2019-04-08 18:10:26 +02:00
buffet
4f703cba94 Spawning a frontend 2019-03-26 21:45:00 +01:00
buffet
d5312fe4dd frontend_path doesn't need to be initialized 2019-03-21 23:28:12 +01:00
buffet
3fc9bb1f23 Cleaned up includes 2019-03-21 22:12:54 +01:00
buffet
9bcd635aca Merged output.cs and input.cs 2019-03-21 17:29:26 +01:00
buffet
cb359ad833 Actually, there are no long opts 2019-03-19 22:22:24 +01:00
buffet
92e42a3d9a Not worth implementing my own parser for those 3 options 2019-03-19 21:58:29 +01:00
buffet
bfe41c0cb9 Basic argument parsing 2019-03-19 20:33:39 +01:00