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
@@ -82,10 +82,16 @@ fn main {
|
||||
comp.step()
|
||||
match nested {
|
||||
Some(n) => {
|
||||
if !n.poll(gfx_surface) {
|
||||
if !n.poll() {
|
||||
break
|
||||
}
|
||||
comp.handle_gfx_events(gfx_surface)
|
||||
if n.keymap.length() > 0 {
|
||||
comp.server.set_keymap(n.keymap)
|
||||
}
|
||||
let now_ms = @env.now().to_uint()
|
||||
for ev in n.take_input() {
|
||||
comp.handle_input(ev, now_ms)
|
||||
}
|
||||
if n.frame_ready() {
|
||||
n.present(comp.present_to_gfx(gfx_ctx))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user