mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-08 06:13:19 +00:00
Fixed secondary screens on KMSDRM (#10535)
* Removed window movement to left top corner that breaks secondary screens on KMSDRM
This commit is contained in:
@@ -1677,7 +1677,9 @@ int KMSDRM_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properti
|
||||
SDL_SetKeyboardFocus(window);
|
||||
|
||||
/* Tell the app that the window has moved to top-left. */
|
||||
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_MOVED, 0, 0);
|
||||
SDL_Rect display_bounds;
|
||||
SDL_GetDisplayBounds(SDL_GetDisplayForWindow(window), &display_bounds);
|
||||
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_MOVED, display_bounds.x, display_bounds.y);
|
||||
|
||||
/* Allocated windata will be freed in KMSDRM_DestroyWindow,
|
||||
and KMSDRM_DestroyWindow() will be called by SDL_CreateWindow()
|
||||
|
||||
Reference in New Issue
Block a user