OSK: sit on top of the panel instead of covering it
CI / test (push) Failing after 49s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-28 23:11:59 -08:00
1 parent 68912f6d64
commit 444d67ac79
7 files changed
+51 -16

No files matched your search

+22 -1
View File
@@ -39,7 +39,7 @@ test "OSK auto-opens on zwp_text_input_v3 enable, shrinks work_area, and auto-hi
// Enabling text-input-v3 raises the OSK and shrinks the window work area cleanly above it.
text_input_state(comp, a, ti, true, 50, 50, 16)
assert_true(comp.osk_is_visible())
assert_eq(comp.work_area.h, full_wa_h - (comp.osk_height() - comp.theme.panel_height))
assert_eq(comp.work_area.h, full_wa_h - comp.osk_height())
// Disabling text-input-v3 hides the OSK and restores the full work area.
text_input_state(comp, a, ti, false, 0, 0, 0)
@@ -127,6 +127,10 @@ test "OSK auto-opens on launcher popup, lifts popup above OSK, and types into se
assert_true(comp.shell.popup_open())
assert_true(comp.osk_is_visible())
// The OSK sits on top of the panel, not over it.
let or = comp.osk_rect()
assert_eq(or.y + or.h, comp.output_h - comp.theme.panel_height)
// Launcher popup sits entirely above the OSK.
let pr = comp.shell.open_popup_rect().unwrap()
assert_true(pr.y + pr.h <= comp.osk_rect().y)
@@ -135,6 +139,23 @@ test "OSK auto-opens on launcher popup, lifts popup above OSK, and types into se
let (tx, ty) = comp.osk_key_center("t").unwrap()
click_at(comp, tx, ty, 20U)
assert_eq(comp.shell.launcher_state.query, "t")
// The panel still takes clicks under the open OSK: its launcher button closes the popup.
click_at(comp, lx.to_int(), ly.to_int(), 30U)
assert_false(comp.shell.popup_open())
assert_false(comp.osk_is_visible())
comp.close()
}
///|
test "OSK reaches the bottom edge in a strict kiosk, which has no panel" {
let comp = osk_comp("kiosk")
comp.start_kiosk("")
let r = comp.osk_rect()
assert_eq(r.y + r.h, comp.output_h)
assert_true(comp.set_kiosk_locked(false))
let r2 = comp.osk_rect()
assert_eq(r2.y + r2.h, comp.output_h - comp.theme.panel_height)
comp.close()
}