Skip to content

Commit

Permalink
wayland: Print an error when the display connection is closed by the …
Browse files Browse the repository at this point in the history
…server

Otherwise, it isn't immediately clear to the client application as to why its windows suddenly disappeared, and it received a quit event out of nowhere.
  • Loading branch information
Kontrabant committed Apr 18, 2024
1 parent a923db9 commit 0bda7e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandevents.c
Expand Up @@ -498,6 +498,7 @@ void Wayland_PumpEvents(SDL_VideoDevice *_this)
*/
if (!Wayland_VideoReconnect(_this)) {
d->display_disconnected = 1;
SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Wayland display connection closed by server (fatal)");

/* Only send a single quit message, as application shutdown might call
* SDL_PumpEvents
Expand Down

0 comments on commit 0bda7e2

Please sign in to comment.