Windows OpenGL: use the system title bar so the picture lines up with clicks (#2063) (#4403)

* claim: #2063

* Windows OpenGL: use the system title bar so the picture lines up with clicks (#2063)

On Windows with only OpenGL to start, the window opens with the system
title bar instead of using the application bar as its title bar. The
window without OS decorations keeps its caption style while having no
frame, and some OpenGL drivers (older Intel HD/UHD) show the picture a
caption's height lower than the window, so clicks land above what they
point at. Direct3D 12 and Vulkan keep the custom title bar.

The choice is made before the window opens, from the backends wgpu
starts, so the window never changes its frame while OpenGL draws into it.
This commit is contained in:
raykholo
2026-10-25 03:19:34 +00:00
committed by GitHub
parent dbe7dfa4bc
commit 138bb0261c
3 changed files with 43 additions and 8 deletions
+5
View File
@@ -95,6 +95,11 @@ from the Start menu after you sign in again. From 0.11.1 the setting can also li
`graphics.json` in the settings folder, as `{"msaa": 4, "backend": "dx12"}` (`auto` is the
order above). Safe mode ignores it and always uses the software renderer.
With OpenGL on Windows, the window has the Windows title bar above SolidCraft's application bar
instead of using the application bar as its title bar. Some OpenGL drivers (older Intel HD and
UHD graphics) otherwise show the picture a title bar's height lower than the window, so clicks
land above what they point at.
## SolidCraft restarted, saying the graphics device was reset
When the graphics driver stops responding, the system resets it (on Windows, "Display driver