mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +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:
parent
b6ae281e97
commit
2aa2fa5449
9 changed files with 88 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue