Skip to content
Snippets Groups Projects
Unverified Commit 88b4e5ed authored by Clayton Craft's avatar Clayton Craft
Browse files

test/test_functional: use -t / window mode when running osk-sdl in tests (MR 153)

I'm not sure why this is suddenly needed, but my best theory is that a
change in SDL2 2.0.16 results in osk-sdl not displaying correctly when
running on X in fullscreen mode. You can see this by running an X server
at a specific size, then running osk-sdl inside of it.

$ Xephyr -screen 480x800 :11 &
$ SDL_VIDEODRIVER=x11 DISPLAY=:11 osk-sdl -d a -n a -c ./osk.conf

Previously it would fit in the X screen size specified, but now it seems
to resize the X screen and fill more space. This throws off all of the
tests, which all depend on using xdotool to move a cursor and click at
various coordinates in the X screen.
parent df5e555d
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ mouse_click_symbols() {
run_osk_sdl() {
local use_sudo="$1"
local out_file="$2"
local opts="$3 -c $OSK_SDL_CONF_PATH"
local opts="$3 -c $OSK_SDL_CONF_PATH -t"
if [ "$use_sudo" = true ]; then
# shellcheck disable=SC2086
sudo "$OSK_SDL_EXE_PATH" $opts 2>"$out_file" 1>&2 &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment