mirror of
https://github.com/glfw/glfw.git
synced 2025-10-22 08:02:27 +00:00
Merge dfb325bba9
into 8e15281d34
This commit is contained in:
commit
6cea358ddd
@ -299,6 +299,7 @@ video tutorials.
|
||||
- Jonas Ådahl
|
||||
- Lasse Öörni
|
||||
- Leonard König
|
||||
- Ivan Souza
|
||||
- All the unmentioned and anonymous contributors in the GLFW community, for bug
|
||||
reports, patches, feedback, testing and encouragement
|
||||
|
||||
|
@ -144,6 +144,7 @@ information on what to include when reporting a bug.
|
||||
a modal to a fallback decoration
|
||||
- [Wayland] Bugfix: The cursor position was not updated when clicking through
|
||||
from a modal to the content area
|
||||
- [Wayland] Bugfix: Use more accurate monitor names
|
||||
- [X11] Bugfix: Running without a WM could trigger an assert (#2593,#2601,#2631)
|
||||
- [Null] Added Vulkan 'window' surface creation via `VK_EXT_headless_surface`
|
||||
- [Null] Added EGL context creation on Mesa via `EGL_MESA_platform_surfaceless`
|
||||
|
@ -55,9 +55,6 @@ static void outputHandleGeometry(void* userData,
|
||||
monitor->wl.y = y;
|
||||
monitor->widthMM = physicalWidth;
|
||||
monitor->heightMM = physicalHeight;
|
||||
|
||||
if (strlen(monitor->name) == 0)
|
||||
snprintf(monitor->name, sizeof(monitor->name), "%s %s", make, model);
|
||||
}
|
||||
|
||||
static void outputHandleMode(void* userData,
|
||||
@ -133,6 +130,7 @@ void outputHandleName(void* userData, struct wl_output* wl_output, const char* n
|
||||
{
|
||||
struct _GLFWmonitor* monitor = userData;
|
||||
|
||||
if (strlen(monitor->name) == 0)
|
||||
strncpy(monitor->name, name, sizeof(monitor->name) - 1);
|
||||
}
|
||||
|
||||
@ -140,6 +138,9 @@ void outputHandleDescription(void* userData,
|
||||
struct wl_output* wl_output,
|
||||
const char* description)
|
||||
{
|
||||
struct _GLFWmonitor* monitor = userData;
|
||||
|
||||
strncpy(monitor->name, description, sizeof(monitor->name) - 1);
|
||||
}
|
||||
|
||||
static const struct wl_output_listener outputListener =
|
||||
|
Loading…
Reference in New Issue
Block a user