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 authored and Sylvain Becker committed 2023-03-25 10:27:17 +01:00
1 parent 45a6ad8e57
commit 2dddaa7dc9
5 files changed
+145 -37

No files matched your search

+3
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;