Make the desktop interactive: pointer/keyboard routing, launcher popup, app launching
CI / test (push) Successful in 25s
CI / test (push) Successful in 25s
- server: wl_pointer/wl_keyboard events (enter/leave/motion/button/key/modifiers), host keymap shared with client keyboards - nested: receives host pointer + keyboard + keymap, queues InputEvents - host: routes input to the launcher popup or the window under the pointer; click-to-focus moves keyboard focus - shell: launcher button opens lib/launcher popup; entries start real apps (foot, konsole, dolphin, firefox, kate, systemsettings if installed) with WAYLAND_DISPLAY pointed at the compositor - sys: has_exe + spawn - e2e test for input delivery and the launcher popup Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a1b85474f8
commit
a63f65806d
10 files changed
+740
-33
No files matched your search
@@ -178,3 +178,19 @@ extern "C" fn c_wall_time_field(which : Int) -> Int = "mp_wall_time_field"
|
||||
pub fn wall_time_field(which : Int) -> Int {
|
||||
c_wall_time_field(which)
|
||||
}
|
||||
|
||||
///|
|
||||
extern "C" fn c_has_exe(name : Bytes) -> Int = "mp_has_exe"
|
||||
|
||||
///|
|
||||
extern "C" fn c_spawn(cmd : Bytes, display : Bytes) -> Int = "mp_spawn"
|
||||
|
||||
///| Whether `name` is an executable on PATH.
|
||||
pub fn has_exe(name : String) -> Bool {
|
||||
c_has_exe(str_to_utf8_bytes(name)) != 0
|
||||
}
|
||||
|
||||
///| Launch `cmd` detached with WAYLAND_DISPLAY set to `display`.
|
||||
pub fn spawn(cmd : String, display : String) -> Bool {
|
||||
c_spawn(str_to_utf8_bytes(cmd), str_to_utf8_bytes(display)) == 0
|
||||
}
|
||||
Reference in new issue
Block a user