)]}' { "commit": "0ace2751bf3aab1714130fcbc3fd1e523f1bf906", "tree": "d4e0393fe5c97a123b4a9880a0408e0e4509f6f6", "parents": [ "dc4f702a195efcf8e8dab896310f17199ddaa905" ], "author": { "name": "Sam Lantinga", "email": "slouken@libsdl.org", "time": "Fri Oct 07 18:11:03 2016 -0700" }, "committer": { "name": "Sam Lantinga", "email": "slouken@libsdl.org", "time": "Fri Oct 07 18:11:03 2016 -0700" }, "message": "Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.\n\nx414e54\n\nWayland 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.\n\nThis 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.\n\nAs 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).\n\nA 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.\n\nI have update to take into account non resizable and fullscreen windows. Also adding in maximize/restore and title functions for Wayland.\n", "tree_diff": [ { "type": "modify", "old_id": "548704e2b6f3d1220a797b094b27b84c8069c14c", "old_mode": 33188, "old_path": "src/video/wayland/SDL_waylandvideo.c", "new_id": "0660ae23a3e8760cf05cd0c85883a981f4d6b08f", "new_mode": 33188, "new_path": "src/video/wayland/SDL_waylandvideo.c" }, { "type": "modify", "old_id": "197600da78a726cfd466b54da4c4b71fe97df9a7", "old_mode": 33188, "old_path": "src/video/wayland/SDL_waylandwindow.c", "new_id": "85fca8de67f9a6e6a3b1980e076f6861e5898e14", "new_mode": 33188, "new_path": "src/video/wayland/SDL_waylandwindow.c" }, { "type": "modify", "old_id": "d031002a1248d888f337c38bee164c43bfc8ca12", "old_mode": 33188, "old_path": "src/video/wayland/SDL_waylandwindow.h", "new_id": "319a573dc8a74af2f6a58094d7d52e61ff74cc47", "new_mode": 33188, "new_path": "src/video/wayland/SDL_waylandwindow.h" } ] }