Skip to content

Commit 390fe65

Browse files
committed
test: Fix a window parenting bug in testmodal
1 parent ca9b7c8 commit 390fe65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testmodal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
9797
}
9898

9999
if (e.key.key == SDLK_M) {
100-
if (SDL_SetWindowParent(w2, w2)) {
100+
if (SDL_SetWindowParent(w2, w1)) {
101101
if (SDL_SetWindowModal(w2, true)) {
102102
SDL_SetWindowTitle(w2, "Modal Window");
103103
}

0 commit comments

Comments
 (0)