mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-15 19:05:32 +00:00
Added SDL_CreateWindowWithPosition()
It turns out there's a race condition on X11 where the window could be placed by the window manager while being placed by the application, so we need to have the initial position available at window creation.
This commit is contained in:
@@ -2519,16 +2519,21 @@ SDL_Event *e1;
|
||||
+ e1->gsensor
|
||||
@@
|
||||
expression e1, e2, e3, e4;
|
||||
constant c1, c2;
|
||||
@@
|
||||
- SDL_CreateWindow(e1, c1, c2, e2, e3, e4)
|
||||
- SDL_CreateWindow(e1, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, e2, e3, e4)
|
||||
+ SDL_CreateWindow(e1, e2, e3, e4)
|
||||
@@
|
||||
expression e1, e2, e3, e4, e5, e6;
|
||||
@@
|
||||
- SDL_CreateWindow(e1, e2, e3, e4, e5, e6)
|
||||
+ SDL_CreateWindowWithPosition(e1, e2, e3, e4, e5, e6)
|
||||
@@
|
||||
expression e1, e2, e3, e4;
|
||||
constant c1, c2;
|
||||
@@
|
||||
- SDL_CreateShapedWindow(e1, c1, c2, e2, e3, e4)
|
||||
+ SDL_CreateShapedWindow(e1, e2, e3, e4)
|
||||
@@
|
||||
typedef SDL_atomic_t, SDL_AtomicInt;
|
||||
@@
|
||||
- SDL_atomic_t
|
||||
|
||||
Reference in New Issue
Block a user