Commit Graph
11 Commits
Author SHA1 Message Date
meehl 8556ebf772 Lint 2026-08-28 18:19:16 +02:00
meehl 8d17f8e64f Use euclid::Scale to convert between physical and logical coord spaces 2026-08-24 23:57:19 +02:00
meehl 6224a1b0a4 Lint 2026-08-24 10:24:51 +02:00
meehl cc6de120f2 Refactor context handling and redraw requests
Remove unsafe pointer shenanigans and give Lua instance ownership over
`Context`. Event handlers now directly mutate Context instead of using a
shared app state which is then hooked up to Context via unsafe pointers.
The removal of a shared state means stages (previously called "modes")
are now responsible for keeping their own internal state.

Additionally, clean up draw request handling and module hierarchy.
2026-08-23 23:55:43 +02:00
meehl e43da1b9e8 Lint 2026-08-12 20:46:43 +02:00
meehl 1812edcbe9 Implement UI scale overriding
Closes #16
2025-11-30 11:16:04 +01:00
meehl ae6a24f82c Reduce CPU usage while window is unfocused and not hovered over
Only render if window is focused, hovered, subscript is running,
or coroutine is active.

Closes #18
2025-11-28 18:30:25 +01:00
meehl f27e83b467 Use smithay-clipboard crate for clipboard support on Wayland
Fixes #8
2025-11-07 00:59:37 +01:00
meehl e877b599c1 Fix UI scaling factor not being applied at startup on X11
On wayland an event it dispatched right after window creation.
 This is not the case on X11 so we need to set it manually.
2025-11-02 15:42:53 +01:00
meehl 38e3a39782 Implement missing SetForeground api function. Fixes #2 2025-10-28 23:12:09 +01:00
meehl d8e52218f8 Remove global context 2025-10-27 23:10:11 +01:00