SDL/src/video
Sam Lantinga eea76fc199 Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
x414e54

Wayland will sometimes send empty resize events (0 width and 0 height) to the client. I have not worked out the exact conditions a client would receive these but I can assume it might be if the window is offscreen or not mapped yet.

This causes issues with some SDL clients as they receive the 0x0 event and unexpected resize event or might not request to resize back to the correct size.

As per the wl_shell Wayland spec configure events are only a suggestion and the client is free to ignore or pick a different size (this is how min/max and fixed aspect ratio is supped to be implemented).

A patch is attached but is just the first iteration and I will fix any issues such as checking for FULLSCREEN/MAXIMIZED or RESIZABLE flags unless someone else fixes this first.

I have update to take into account non resizable and fullscreen windows. Also adding in maximize/restore and title functions for Wayland.
2016-10-07 18:11:03 -07:00
..
android Fixed bug 2808 - Fix SDL reporting wrong window size on resume 2016-10-07 15:21:19 -07:00
cocoa Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed. 2016-10-04 02:11:52 -07:00
directfb Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity(). 2016-01-05 02:46:10 -05:00
dummy Updated copyright to 2016 2016-01-02 10:10:34 -08:00
emscripten Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte 2016-09-13 00:09:21 -07:00
haiku haiku: Patched to compile. 2016-09-29 23:15:56 -04:00
mir Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
nacl Updated copyright to 2016 2016-01-02 10:10:34 -08:00
pandora Pandora: Fixed memory leak in video implementation. 2016-07-20 21:00:52 +02:00
psp PSP: Fixed memory leak if video init failed. 2016-08-03 22:32:20 +02:00
raspberry Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges 2016-10-01 13:59:59 -07:00
uikit Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad 2016-10-01 12:46:36 -07:00
vivante Updated comments in video implementations. 2016-07-18 22:03:47 +02:00
wayland Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0. 2016-10-07 18:11:03 -07:00
windows Fixed bug 2832 - Inverted arrow-key navigation in MessageBox 2016-10-07 16:19:50 -07:00
winrt WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code 2016-08-31 12:52:55 -04:00
x11 Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function 2016-10-07 17:26:25 -07:00
SDL_RLEaccel.c Fixed sed error on Mac OS X and updated copyright on a few last files 2016-01-02 10:38:51 -08:00
SDL_RLEaccel_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_0.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_1.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_A.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_N.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_auto.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_auto.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_copy.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_copy.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_slow.c Fixed bug 3159 - SDL_blit_slow with BLENDING does not work 2016-10-01 13:40:01 -07:00
SDL_blit_slow.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_bmp.c Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW 2016-10-01 11:29:13 -07:00
SDL_clipboard.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_egl.c Fixed compiler warning - this should have been a const char pointer 2016-10-04 03:38:39 -07:00
SDL_egl_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_fillrect.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_pixels.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_pixels_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_rect.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_rect_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_shape.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_shape_internals.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_stretch.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_surface.c Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum 2016-10-07 17:04:58 -07:00
SDL_sysvideo.h Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
SDL_video.c Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error 2016-10-07 18:09:09 -07:00
sdlgenblit.pl Updated copyright to 2016 2016-01-02 10:10:34 -08:00