# SDL: wayland: Fix comment

**URL:** <https://discourse.libsdl.org/t/sdl-wayland-fix-comment/50470>\
**Category:** SDL Commits\
**Created:** [April 14, 2024, 7:04pm UTC](https://discourse.libsdl.org/t/sdl-wayland-fix-comment/50470 "2024-04-14T19:04:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [April 14, 2024, 7:04pm UTC](https://discourse.libsdl.org/t/sdl-wayland-fix-comment/50470/1 "2024-04-14T19:04:03Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/f4611ffe9a9976ded448c5588148ccd85662ecfa>

```diff
From f4611ffe9a9976ded448c5588148ccd85662ecfa Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Sun, 14 Apr 2024 15:02:31 -0400
Subject: [PATCH] wayland: Fix comment

---
 src/video/wayland/SDL_waylandwindow.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 38e21197d8287..4a11ab56a35d9 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -603,11 +603,10 @@ static void UpdateWindowFullscreen(SDL_Window *window, SDL_bool fullscreen)
             SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_ENTER_FULLSCREEN, 0, 0);
             SDL_UpdateFullscreenMode(window, SDL_TRUE, SDL_FALSE);
 
- /* Unconditionally set the output for exclusive fullscreen windows when entering
- * fullscreen from a compositor event, as where the compositor will actually
- * place the fullscreen window is unknown.
- *
- * If the higher level
+ /* Set the output for exclusive fullscreen windows when entering fullscreen from a
+ * compositor event, or if the fullscreen paramaters were changed between the initial
+ * fullscreen request and now, to ensure that the window is on the correct output,
+ * as requested by the client.
              */
             if (window->fullscreen_exclusive && (!wind->fullscreen_exclusive || !wind->fullscreen_was_positioned)) {
                 SDL_VideoDisplay *disp = SDL_GetVideoDisplay(window->current_fullscreen_mode.displayID);

```
