Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
(cherry picked from commit 70890b1)
  • Loading branch information
slouken committed Aug 13, 2024
1 parent 21e0382 commit 95aed34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/kmsdrm/SDL_kmsdrmvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,8 @@ int KMSDRM_CreateWindow(_THIS, SDL_Window *window)
/* Tell the app that the window has moved to top-left. */
{
SDL_Rect display_bounds;
SDL_GetDisplayBounds(SDL_GetDisplayForWindow(window), &display_bounds);
SDL_zero(display_bounds);
SDL_GetDisplayBounds(SDL_GetWindowDisplayIndex(window), &display_bounds);
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MOVED, display_bounds.x, display_bounds.y);
}

Expand Down

0 comments on commit 95aed34

Please sign in to comment.