Commit graph

196 commits

Author SHA1 Message Date
07b575c6a6 Add documentation for the Lua API 2020-01-08 23:20:29 +00:00
6fb13b2871 Add view:size 2020-01-08 22:26:17 +00:00
866a8a2cad Add server:view_at 2020-01-08 21:46:41 +00:00
8781f19de7 Add output:on_resize, fix missing output:on 2020-01-08 21:46:36 +00:00
6d84fbe1c5 clang-format 2020-01-08 17:33:15 +00:00
5dc2c62d89 Add equality for Lua types 2020-01-08 17:33:01 +00:00
838aaf2daf Make view:tiled user configurable 2020-01-08 17:24:13 +00:00
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
7fd2f1fb29 Merge branch 'tadeokondrak-cursor-image-handling' 2019-12-29 13:01:13 +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
5014c08fc9 Merge branch 'RubbaBoy-master' 2019-12-22 16:59:49 +00:00