Skip to content

Commit

Permalink
Explicitly set client activation state after video init
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Jan 28, 2023
1 parent 3b927eb commit 6748918
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/unix/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,13 @@ bool VID_Init(graphics_api_t api)
}

VID_SetMode();

/* Explicitly set an "active" state to ensure at least one frame is displayed.
Required for Wayland (on Fedora 36/GNOME/NVIDIA driver 510.68.02/SDL 2.0.22) -
without that, we never get a window event and thus the activation state sticks
at ACT_MINIMIZED, never rendering anything. */
CL_Activate(ACT_RESTORED);

return true;

fail:
Expand Down

0 comments on commit 6748918

Please sign in to comment.