Bläddra i källkod

win32: Only recalculate the position on show for popup windows

Regular child windows aren't positioned relative to the parent.
Frank Praznik 3 månader sedan
förälder
incheckning
1a6e139dde
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/video/windows/SDL_windowswindow.c

+ 1 - 1
src/video/windows/SDL_windowswindow.c

@@ -1064,7 +1064,7 @@ void WIN_ShowWindow(SDL_VideoDevice *_this, SDL_Window *window)
 
     bool bActivate = SDL_GetHintBoolean(SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN, true);
 
-    if (window->parent) {
+    if (SDL_WINDOW_IS_POPUP(window)) {
         // Update our position in case our parent moved while we were hidden
         WIN_SetWindowPosition(_this, window);
     }