Commit graph

190 commits

Author SHA1 Message Date
783e982206 Rename view_resize to view_set_size 2020-01-08 16:39:20 +00:00
09bc31eaf1 Add view:tiled 2020-01-07 15:10:51 +00:00
192dfca0ca Add cursor API 2020-01-07 14:48:55 +00:00
aa046f8f02 Add output interface 2020-01-06 18:25:46 +00:00
84d49083c7 Add missing return on error in a few places 2020-01-06 16:47:57 +00:00
4d106fa639 Cap namelen 2020-01-06 16:47:33 +00:00
0b93459147 Fix protocol names 2020-01-05 00:02:58 +00:00
a0bae4f8b5 Add view:pos and view:resize 2020-01-04 23:54:55 +00:00
758e793281 Add keyboard to Lua API, make everything on lua->L balanced 2020-01-04 23:23:15 +00:00
85120c16cd Add kiwmi:focused_view() and kiwmi:spawn() 2020-01-03 20:46:39 +00:00
ff9c63547d Add missing assignment to focused_view 2020-01-03 20:46:06 +00:00
b79aa962d6 Add kiwmic IPC 2020-01-03 18:40:11 +00:00
cbe587b8c2 Add view destroy event 2020-01-02 23:39:15 +00:00
3ac3781e9f Make event handler registration generic 2020-01-02 22:15:00 +00:00
15c70816f3 Split luak.c into multiple files 2020-01-02 00:11:46 +00:00
3e4fc2bf46 Prefix kiwmi_server methods with kiwmi_server 2020-01-01 18:13:47 +00:00
236c76df0e Add view event to kiwmi_server 2020-01-01 18:13:24 +00:00
460ec217dd Add hidden, hide and show to views 2020-01-01 18:10:42 +00:00
ab1e95bef3 Change make kiwmi an object, use pcall for Lua functions 2019-12-31 15:19:42 +00:00
21f726c3ce Change on_cursor_button's callbacks parameter to a table 2019-12-31 13:46:21 +00:00
Tadeo Kondrak
858bd3a767 Implement view:move() 2019-12-30 23:06:58 -07:00
Tadeo Kondrak
0306baf534 Fix crash on unmap
The complete type unsafety of wl_container_of strikes again.
2019-12-30 22:30:08 -07:00
Tadeo Kondrak
23a387a217 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
849cda7021 Rename focus_view to view_focus
For consistency with the other functions.
2019-12-30 22:24:58 -07:00
Tadeo Kondrak
09b817deaa Remove focus on click
It's a config responsibility now.
2019-12-30 22:24:53 -07:00
Tadeo Kondrak
861e4ec55a Add ForEachMacros to .clang-format
So it doesn't add a linebreak after them.
2019-12-30 21:46:50 -07:00
006c73b47a Fix callback leak 2019-12-31 00:25:20 +00:00
9fb2b2ce43 Add luaK_fini 2019-12-31 00:09:06 +00:00
1d073cf0ea 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
9f9370e949 Add view_close 2019-12-30 23:23:35 +00:00
dc6cf64892 Rename request_set_cursor to seat_request_set_cursor 2019-12-29 13:03:54 +00:00
41edaf8489 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
ced6665c75 Add support for cursor axis and frame events (#15)
For scrolling support.
2019-12-29 11:10:51 +00:00
Tadeo Kondrak
83381498ff Fix lack of return from function (#14) 2019-12-29 10:39:53 +00:00
Tadeo Kondrak
9dfbb462ca Verify focus on cursor image changes 2019-12-29 01:26:29 -07:00
Tadeo Kondrak
0bdfdde29b 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
06debf11db Add basic cursor handling (including focusing clients) 2019-12-26 20:55:10 +00:00
2f4c865afc Move view creation code into view_create 2019-12-24 17:09:16 +00:00
68eec4ae23 Move wl_list_remove(view::link) to the top of the bunch 2019-12-24 16:09:22 +00:00
9ca0d87a32 Add auto focus for views and basic keyboard handling 2019-12-24 15:43:36 +00:00
31217d3089 Fix view staying in view list, even after destroyed 2019-12-24 15:41:23 +00:00
cce0d0ba15 Support xdg-shell and add basic rendering 2019-12-21 14:10:50 +00:00
3673ae37ca Change free, malloc to realloc 2019-12-11 13:46:09 +00:00
f936aed7c2 Add protocols (xdg-shell) 2019-12-10 23:37:43 +00:00
1e42eba563 Style changes 2019-12-04 16:55:25 +00:00
0f4657e279 Add screenshot support 2019-12-04 16:54:46 +00:00
815a8b96ad Change fallback render color to something more visible 2019-11-28 18:30:49 +00:00
79e6b392cf Add Lua config without kiwmi lib 2019-10-18 23:32:38 +02:00
71917a46cf Add config path default 2019-10-18 22:42:30 +02:00
5a362d63c5 Delete frontend, add config 2019-10-16 19:05:30 +02:00
ffd4a89db0 Updated to wlr 0.6 2019-07-10 22:11:14 +02:00
fa4cbf0647 Move type declaration for cmd_handlers up 2019-05-03 09:18:55 +02:00
6cf3a23ad0 Fixed zombification 2019-04-17 17:40:56 +02:00
733c301c7d clang-format 2019-04-15 11:37:37 +02:00
da4f881cc9 Basic command handling (without arguments) 2019-04-14 17:06:38 +02:00
8b2d2bcd50 read first, then do all commands 2019-04-13 15:30:49 +02:00
085b27f0b8 ready for command handling 2019-04-12 14:28:27 +02:00
80c1e9c1f9 dont need NON_BLOCK 2019-04-12 13:01:31 +02:00
fe8b10a742 removed log i added by accident 2019-04-10 11:41:47 +02:00
9e6a347529 Server socket implementation 2019-04-08 18:10:37 +02:00
ca640aafc0 Added check for XDG_RUNTIME_DIR 2019-04-08 18:10:26 +02:00
ab565e2c87 Spawning a frontend 2019-03-26 21:45:00 +01:00
89a00b913c frontend_path doesn't need to be initialized 2019-03-21 23:28:12 +01:00
7efc56adfc Cleaned up includes 2019-03-21 22:12:54 +01:00
1ba4b518fa Merged output.cs and input.cs 2019-03-21 17:29:26 +01:00
83c38f6e5c Actually, there are no long opts 2019-03-19 22:22:24 +01:00
99bcc1dc51 Not worth implementing my own parser for those 3 options 2019-03-19 21:58:29 +01:00
fe3798e48a Basic argument parsing 2019-03-19 20:33:39 +01:00
b394a50db6 Moved cursor into input 2019-03-17 21:03:59 +01:00
b3eed39a82 Added input_init 2019-03-17 20:17:41 +01:00
5b91ce1835 Added desktop_init 2019-03-17 20:04:52 +01:00
1e2bef4cae Don't need to call wlr_backend_destroy 2019-03-17 18:24:36 +01:00
c092c8784b Keyboard handling
commit ee1a46632dea614fcdf614299d4de6e22a9b0060
Author: buffet <dev@buffet.sh>
Date:   Sat Mar 16 16:29:33 2019 +0100

    Fixed TTY switching

commit 7cc8aae424c924035489c09c6d5337eb281f1e39
Author: buffet <dev@buffet.sh>
Date:   Fri Mar 15 16:55:13 2019 +0100

    Started working on kb handling
2019-03-16 16:31:58 +01:00
ca8fa35bbc Fixed cursors 2019-03-11 13:29:23 +01:00
be5c1a26af More unified logging 2019-03-11 12:02:55 +01:00
0f72a55bf7 Add cursor image 2019-03-11 10:34:46 +01:00
6acc0375e7 Inlined background thing 2019-03-10 23:28:58 +01:00
bf7209534d Fixed listener for absolute motion 2019-03-08 14:16:08 +01:00
45e5f6235e Render cursors 2019-03-08 13:36:44 +01:00
1e01e3f74e Not sure why statics weren't on top 2019-03-07 19:38:50 +01:00
cde9124bb3 Merge branch 'master' of https://github.com/buffet/kiwmi 2019-03-07 19:27:41 +01:00
840a40de00 Basic cursor handling 2019-03-07 19:25:38 +01:00
8a2e11ee28 Supress UNUSED parameter warnings 2019-03-07 18:51:33 +01:00
Tadeo Kondrak
176131de99 fix socket being logged before we have the socket 2019-03-06 16:26:04 -07:00
Aareon Sullivan
6b44a26ad0 Fixed typo in output_destroy_notify
* Fix misspelled function name output_destroy_notify

* Fix function definition also

* As well as one usage
2019-02-27 23:19:39 +01:00
d4df311d24 clang-format 2019-02-19 11:50:46 +01:00
11740072a5 removing the correct listener 2019-02-19 11:09:17 +01:00
955b75ef23 Basic ouput handling 2019-02-18 12:50:05 +01:00
6ace2c9aa9 added missing copyright notice 2019-02-17 13:23:20 +01:00
3e94dae39b Basic C comp 2019-02-17 13:19:28 +01:00