backport x11/sdl2 fixes

4b1378f

X11: fix size/position (test video_setWindowCenteredOnDisplay)

this fix x11 backend to correctly pass video_setWindowCenteredOnDisplay()

    get border values early (eg status bar)
    wait for size/position change to get valid values

d4d26e0

testautomation_video: if SDL_SetWindowSize/Position isn't honored, we should check there is an event
x11: send the events if various occasions
This commit is contained in:
Sylvain 2023-03-25 10:24:38 +01:00 committed by Sylvain Becker
parent 45a6ad8e57
commit 2dddaa7dc9
5 changed files with 145 additions and 37 deletions

View file

@ -45,6 +45,9 @@ int main(int argc, char *argv[])
return 1;
}
/* No need of windows (or update testautomation_mouse.c:mouse_getMouseFocus() */
state->num_windows = 0;
/* Parse commandline */
for (i = 1; i < argc;) {
int consumed;