p#700 Fix issue with tittle bar on Windows - #6218
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts deferred resolution updates to avoid a Windows-specific sizing mismatch where the window title bar could overlap/hide UI elements, and it adds API documentation around LLWindow::getSize() semantics across platforms.
Changes:
- In
LLViewerWindow::checkSettings(), apply the deferred reshape using stored raw dimensions on non-macOS platforms, while keeping a macOS-specificgetSize()path. - Add/adjust header comments describing platform differences for
LLWindow::getSize(LLCoordScreen).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| indra/newview/llviewerwindow.cpp | Changes deferred resolution update flow to avoid using getSize() on non-macOS. |
| indra/llwindow/llwindowwin32.h | Adds documentation describing getSize(LLCoordScreen) behavior on Windows (needs correction). |
| indra/llwindow/llwindowmacosx.h | Adds documentation describing getSize(LLCoordScreen) behavior on macOS (needs correction). |
| indra/llwindow/llwindow.h | Adds cross-platform contract comment for LLWindow::getSize(LLCoordScreen) (needs correction). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
0bf6e20 to
9ec500c
Compare
| // Deferred resolution update after states have been refreshed. | ||
| #ifdef LL_DARWIN | ||
| // On macOS, LLWindow::getSize(LLCoordScreen) reports the backing view size. | ||
| LLCoordScreen window_size; |
There was a problem hiding this comment.
Like I mentioned in the 26.4 PR, wouldn't just changing this line to LLCoordWindow window_size; work for all platforms and not require platform specific checks?
There was a problem hiding this comment.
You are right, thank you. I jumped the gun again(
9ec500c to
3fc8e9f
Compare
3fc8e9f to
f972a3d
Compare
Fixed an issue with tittle bar hiding menu on windows,