Commit Graph

12 Commits (main)

Author SHA1 Message Date
Daniel Barlow c980f7fe20 initial support for touch events
Calls lua handlers, then passes the event to the appropriate client

Doesn't do pointer emulation (unlike sway) because in the
GNOME/Gtk worldview that's done client-side, so my assumption is
anything else that wants to co-exist with GNOME also has to
do it client-side

Still to do:

- verify whether return value of the lua handler will affect whether
event passed to child

- clean up the hacky int we use to track whether to set touch
seat capability
2022-07-12 23:16:44 +00:00
Daniel Barlow 36496ad126 pointer focus needs to account for view transform matrix 2022-07-07 11:58:40 +01:00
Daniel Barlow 60d4466857 terminate repl & cleanup when eof 2022-07-02 23:17:00 +01:00
Daniel Barlow 03b32ffa7e make event_loop_add_fd available to Lua on kiwmi singleton
CAUTION - the implementation is unfinished, as it doesn't
clean up when the fd is closed
2022-07-01 22:17:41 +01:00
Daniel Barlow 49229c75f3 add per-view transformation matrices
Note that this breaks output layout. Would prefer to deal with that
stuff ("monitor 1 is left of monitor 2") in Lua for more flexibility
2022-05-21 20:30:54 +01:00
Daniel Barlow 7c061624c7 output render callback accepts { : output : renderer } 2022-05-05 23:38:39 +01:00
Daniel Barlow b804bb1c1f add "render" callback on output 2022-05-05 23:23:49 +01:00
Daniel Barlow f626324825 new lua bindings for textures
- output:renderer
- renderer:texture_from_pixels
- renderer:draw_texture

We need to be able to access the renderer outside of the post_render
hook (hence output:renderer) because we can't call
wlr_texture_from_pixels while rendering

texture_from_pixels accepts a string as the data argument not a
userdata, because that matches what we getk from GdkPixbuf.Pixbuf
new_from_file when using gobject-introspection.
2022-04-28 20:27:09 +01:00
Daniel Barlow 77444ac47c add binding to iterate through outputs 2022-04-26 15:51:29 +01:00
Daniel Barlow a43acd458f add output:set_mode, allows setting width/height of backend window
handy when running under wayland
probably not very useful on a hardware device
2022-04-26 15:51:15 +01:00
Daniel Barlow bbb9d40c69 Merge commit '28156e0c9d098738f56a976ac8fa983bf22cf6b8' as 'kiwmi' 2022-04-26 15:34:04 +01:00
Daniel Barlow 28156e0c9d Squashed 'kiwmi/' content from commit d9f4f51
git-subtree-dir: kiwmi
git-subtree-split: d9f4f519597b0eef004369af917bab3d6b73a9b0
2022-04-26 15:34:04 +01:00