4

I'm trying to find a way to fire an event only at the end of resizing event in SDL-2.

both polling on sdl events using SDL_PollEvent and SDL_SetEventFilter fire on the resizing event itself not at the end.

EDIT

Platform: linux

Display server: X11

Baron Leonardo
  • 329
  • 3
  • 13
  • How do you catch resizing events? In my case both `SDL_WINDOWEVENT_RESIZED` and `SDL_WINDOWEVENT_SIZE_CHANGED` are generated at the end of resizing. – dimich Sep 03 '22 at 15:37
  • Related? [Getting Continuous Window Resize Event in SDL 2](https://stackoverflow.com/questions/32294913/getting-continuous-window-resize-event-in-sdl-2) – ggorlen Sep 03 '22 at 19:12
  • I tried this solution and it only fire at the start not at the end – Baron Leonardo Sep 03 '22 at 20:56
  • https://wiki.libsdl.org/SDL_WindowEvent example code for `SDL_WINDOWEVENT_RESIZED` says that the event occurs _after_ the event – Craig Estey Sep 03 '22 at 21:21
  • within the resizing event if you stop the cursor from moving it will fire `SDL_WINDOWEVENT_RESIZED` even before the resizing event end totally – Baron Leonardo Sep 03 '22 at 22:52

0 Answers0