# Latest

**URL:** https://discourse.glfw.org/latest.md

[Latest](https://discourse.glfw.org/latest.md) · [Categories](https://discourse.glfw.org/categories.md)

---

## [Welcome to the GLFW forum](https://discourse.glfw.org/t/welcome-to-the-glfw-forum/8)

<div class="topic-metadata">

**Author:** [@system](https://discourse.glfw.org/u/system)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 5:20pm UTC](https://discourse.glfw.org/t/welcome-to-the-glfw-forum/8 "2016-03-02T17:20:16Z")

</div>

Welcome to the discussion and support forum for GLFW. Come on in and sorry about the mess! We're still getting everything ready. The site icon was made by tonnon.

---

## [Detecting keymap changes on X11](https://discourse.glfw.org/t/detecting-keymap-changes-on-x11/3022)

<div class="topic-metadata">

**Author:** [@Geolykt](https://discourse.glfw.org/u/Geolykt)\
**Replies:** 3\
**Last updated:** [September 7, 2026, 8:15am UTC](https://discourse.glfw.org/t/detecting-keymap-changes-on-x11/3022 "2026-09-07T08:15:00Z")

</div>

How would I detect changes in the keymap/keyboard layout? On Wayland this is rather simple since I can just register a listener by asking the compositor myself. However, as I understand it (I’m still quite a noob when it…

---

## [Can you please explain what context sharing then means?](https://discourse.glfw.org/t/can-you-please-explain-what-context-sharing-then-means/3023)

<div class="topic-metadata">

**Author:** [@printfdebugging](https://discourse.glfw.org/u/printfdebugging)\
**Replies:** 2\
**Last updated:** [September 6, 2026, 6:23pm UTC](https://discourse.glfw.org/t/can-you-please-explain-what-context-sharing-then-means/3023 "2026-09-06T18:23:28Z")

</div>

Can you please explain what context sharing then means? I recently faced a similar bug in my code when trying to implement context sharing between a hidden window and other visible windows, and I found that I have to bi…

---

## [GLFW Shared Contexts](https://discourse.glfw.org/t/glfw-shared-contexts/1707)

<div class="topic-metadata">

**Author:** [@stephane](https://discourse.glfw.org/u/stephane)\
**Replies:** 4\
**Last updated:** [November 29, 2020, 4:44pm UTC](https://discourse.glfw.org/t/glfw-shared-contexts/1707 "2020-11-29T16:44:54Z")

</div>

Hi, I am currently working on my game framework (c++, GLFW 3.3.2, OpenGL 4.4). I would like to add to possibility to work with multiple windows. In that purpose, i start working with shared contexts. So i created a ‘u…

---

## [Calling glfw methods in C++ class methods](https://discourse.glfw.org/t/calling-glfw-methods-in-c-class-methods/3021)

<div class="topic-metadata">

**Author:** [@jonathan9267](https://discourse.glfw.org/u/jonathan9267)\
**Replies:** 1\
**Last updated:** [August 4, 2026, 3:27pm UTC](https://discourse.glfw.org/t/calling-glfw-methods-in-c-class-methods/3021 "2026-08-04T15:27:26Z")

</div>

Dear GLFW community, I am working on a small project using GLFW. I wanted to simplify the rendering process for myself, and be able to construct a “rendering object” in a seperate c++ class, which is then called by the …

---

## [Collect2.exe: error: ld returned 1 exit status While compiling](https://discourse.glfw.org/t/collect2-exe-error-ld-returned-1-exit-status-while-compiling/3020)

<div class="topic-metadata">

**Author:** [@C\_fan\_39](https://discourse.glfw.org/u/C_fan_39)\
**Replies:** 2\
**Last updated:** [July 29, 2026, 7:17pm UTC](https://discourse.glfw.org/t/collect2-exe-error-ld-returned-1-exit-status-while-compiling/3020 "2026-07-29T19:17:40Z")

</div>

The problem Hello. I’m new to GLFW and I’m trying to compile a simple window program to test my GLFW but every time it reaches the compiling stage and then it fails sending a “collect2.exe: error: ld returned 1 exit stat…

---

## [Error creating standard cursors](https://discourse.glfw.org/t/error-creating-standard-cursors/3019)

<div class="topic-metadata">

**Author:** [@IHaveNoName](https://discourse.glfw.org/u/IHaveNoName)\
**Replies:** 0\
**Last updated:** [July 23, 2026, 6:37am UTC](https://discourse.glfw.org/t/error-creating-standard-cursors/3019 "2026-07-23T06:37:04Z")

</div>

I was attempting to create resize cursors with this code glfwSetCursor(window, glfwCreateStandardCursor(GLFW\_RESIZE\_NS\_CURSOR)); and realized that it was doing nothing. It was giving me this error Wayland: Failed to c…

---

## [How to per-pixel window transparency](https://discourse.glfw.org/t/how-to-per-pixel-window-transparency/3018)

<div class="topic-metadata">

**Author:** [@xzores](https://discourse.glfw.org/u/xzores)\
**Replies:** 1\
**Last updated:** [July 12, 2026, 2:13pm UTC](https://discourse.glfw.org/t/how-to-per-pixel-window-transparency/3018 "2026-07-12T14:13:31Z")

</div>

Hello, I want to make an effect where the transparency of the window depends on the alpha value of the framebuffer. Is that possible? To explain with examples: like Elder Scrolls Online’s launcher where the edges are s…

---

## [Failed to make context current for threaded rendering loop](https://discourse.glfw.org/t/failed-to-make-context-current-for-threaded-rendering-loop/3011)

<div class="topic-metadata">

**Author:** [@Qlii256](https://discourse.glfw.org/u/Qlii256)\
**Replies:** 2\
**Last updated:** [July 3, 2026, 6:41pm UTC](https://discourse.glfw.org/t/failed-to-make-context-current-for-threaded-rendering-loop/3011 "2026-07-03T18:41:20Z")

</div>

For a little while I’ve been working on an application that has the OpenGL rendering logic on a separate thread. This gives me a couple of options. One it let’s me render to the window while resizing/moving; It let’s me …

---

## [Cross-building glfw from x86\_64 source to arm64](https://discourse.glfw.org/t/cross-building-glfw-from-x86-64-source-to-arm64/3014)

<div class="topic-metadata">

**Author:** [@John](https://discourse.glfw.org/u/John)\
**Replies:** 3\
**Last updated:** [July 1, 2026, 5:04pm UTC](https://discourse.glfw.org/t/cross-building-glfw-from-x86-64-source-to-arm64/3014 "2026-07-01T17:04:00Z")

</div>

My host machine is a Linux x86\_64. My target is a SoC Linux arm64. They both have the required graphics processors. I 'm provided with a custom toolchain with gcc/g++ compilers and a sysroot. How to build the glfw li…

---

## ['glfwCreateWindow' not returning NULL as it should?](https://discourse.glfw.org/t/glfwcreatewindow-not-returning-null-as-it-should/3000)

<div class="topic-metadata">

**Author:** [@Ragnar\_the\_Red](https://discourse.glfw.org/u/Ragnar_the_Red)\
**Replies:** 0\
**Last updated:** [May 17, 2026, 3:49pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-not-returning-null-as-it-should/3000 "2026-05-17T15:49:13Z")

</div>

Hello there :slight\_smile: I have a somewhat strange problem when trying to glfwInit a window on my CachyOS. I am getting: Failed to load plugin ‘libdecor-gtk.so’: failed to init with the description: EGL: Failed to …

---

## [Changing a key bind](https://discourse.glfw.org/t/changing-a-key-bind/2993)

<div class="topic-metadata">

**Author:** [@Alexa-Berman](https://discourse.glfw.org/u/Alexa-Berman)\
**Replies:** 1\
**Last updated:** [April 12, 2026, 9:50pm UTC](https://discourse.glfw.org/t/changing-a-key-bind/2993 "2026-04-12T21:50:43Z")

</div>

I am working on a project where you can play a piano. I want to have the option to switch octaves using the arrow keys (octave stored as an int variable) and have that change what sound is played using another library (m…

---

## [Getting timestamp of key events](https://discourse.glfw.org/t/getting-timestamp-of-key-events/910)

<div class="topic-metadata">

**Author:** [@Overblade](https://discourse.glfw.org/u/Overblade)\
**Replies:** 8\
**Last updated:** [March 30, 2026, 2:24pm UTC](https://discourse.glfw.org/t/getting-timestamp-of-key-events/910 "2026-03-30T14:24:20Z")

</div>

I really like glfw because it's a small but powerful library :smile:. In my game, I currently buffer key events to pass them in fixed time intervals for updating entities. Although I use a key callback, I cannot get th…

---

## [Getting key names for user display](https://discourse.glfw.org/t/getting-key-names-for-user-display/2991)

<div class="topic-metadata">

**Author:** [@2001herne](https://discourse.glfw.org/u/2001herne)\
**Replies:** 1\
**Last updated:** [March 1, 2026, 9:44am UTC](https://discourse.glfw.org/t/getting-key-names-for-user-display/2991 "2026-03-01T09:44:37Z")

</div>

This might be a bit of a hybrid support/dev question, but here goes: As I understand it, glfwGetKeyName() gets the key name based on how the scancode would be represented on an EN\_US keyboard (i.e. QWERTY). It’s also su…

---

## [GLFW 3.4 / External platform](https://discourse.glfw.org/t/glfw-3-4-external-platform/2572)

<div class="topic-metadata">

**Author:** [@ypujante](https://discourse.glfw.org/u/ypujante)\
**Replies:** 11\
**Last updated:** [February 15, 2026, 11:32am UTC](https://discourse.glfw.org/t/glfw-3-4-external-platform/2572 "2026-02-15T11:32:58Z")

</div>

I was looking at the 3.4 release and the concept of platform that was introduced. Having worked on the GLFW3 emscripten implementation, I am not too sure how I would implement the glfwGetPlatform() API since none of the …

---

## [Data race in triangle example](https://discourse.glfw.org/t/data-race-in-triangle-example/2990)

<div class="topic-metadata">

**Author:** [@robin162](https://discourse.glfw.org/u/robin162)\
**Replies:** 2\
**Last updated:** [February 2, 2026, 1:58pm UTC](https://discourse.glfw.org/t/data-race-in-triangle-example/2990 "2026-02-02T13:58:36Z")

</div>

I’m trying to recreate a data race in our production environment. So, I’m running the triangle-opengl example (GLFW version 3.4), with -fsanitize=thread and lo and behold: $ ./examples/triangle-opengl ==================…

---

## [Problem with controller with lots of buttons on Windows](https://discourse.glfw.org/t/problem-with-controller-with-lots-of-buttons-on-windows/2989)

<div class="topic-metadata">

**Author:** [@epajarre](https://discourse.glfw.org/u/epajarre)\
**Replies:** 0\
**Last updated:** [January 25, 2026, 10:24am UTC](https://discourse.glfw.org/t/problem-with-controller-with-lots-of-buttons-on-windows/2989 "2026-01-25T10:24:52Z")

</div>

I am experimenting with steering wheels on Windows, and meeting problems with devices with more than 32 buttons. Both in my own code and in the GLFW example (version from Git repo) the state of some buttons is not detec…

---

## [Cannot view window via screenshot or remote screen access](https://discourse.glfw.org/t/cannot-view-window-via-screenshot-or-remote-screen-access/2986)

<div class="topic-metadata">

**Author:** [@grant-onq](https://discourse.glfw.org/u/grant-onq)\
**Replies:** 3\
**Last updated:** [January 19, 2026, 8:33am UTC](https://discourse.glfw.org/t/cannot-view-window-via-screenshot-or-remote-screen-access/2986 "2026-01-19T08:33:52Z")

</div>

Hi, I have an application that currently uses glfw and OpenGL 4.3 to render assets such as videos, images etc. I have a requirement where a third party application needs to be able to take a screenshot of the window cont…

---

## [Touch API support](https://discourse.glfw.org/t/touch-api-support/2831)

<div class="topic-metadata">

**Author:** [@ypujante](https://discourse.glfw.org/u/ypujante)\
**Replies:** 3\
**Last updated:** [January 16, 2026, 11:39am UTC](https://discourse.glfw.org/t/touch-api-support/2831 "2026-01-16T11:39:40Z")

</div>

It doesn’t look like there is any API to support touch as an input in GLFW. Is there such an API in the future, for example for 3.5? A secondary question is what is the plan for 3.5? The main documentation website state…

---

## [Fullscreen not working on Macbook pro M2 Max](https://discourse.glfw.org/t/fullscreen-not-working-on-macbook-pro-m2-max/2981)

<div class="topic-metadata">

**Author:** [@lefty](https://discourse.glfw.org/u/lefty)\
**Replies:** 6\
**Last updated:** [January 7, 2026, 11:27am UTC](https://discourse.glfw.org/t/fullscreen-not-working-on-macbook-pro-m2-max/2981 "2026-01-07T11:27:36Z")

</div>

I found a bug when testing fullscreen on a Macbook pro M2 max with a screen size of 3024x1964. It should create a window that is the size of the entire monitor, instead creates a small window in the bottom left corner wi…

---

## [How to connect glfw and DirectSound8](https://discourse.glfw.org/t/how-to-connect-glfw-and-directsound8/2985)

<div class="topic-metadata">

**Author:** [@YashwanthCB](https://discourse.glfw.org/u/YashwanthCB)\
**Replies:** 1\
**Last updated:** [January 7, 2026, 7:55am UTC](https://discourse.glfw.org/t/how-to-connect-glfw-and-directsound8/2985 "2026-01-07T07:55:56Z")

</div>

Hi. i am working with glfw and opengl for rendering and directsound8 for audio. However i am not able to create ds8 object with glfw window. here is my code: int main(int argc, char\* argv\[\]) { if (!glfwInit()) …

---

## [Init error ( 65544)](https://discourse.glfw.org/t/init-error-65544/2064)

<div class="topic-metadata">

**Author:** [@livelove1987](https://discourse.glfw.org/u/livelove1987)\
**Replies:** 3\
**Last updated:** [January 3, 2026, 11:01pm UTC](https://discourse.glfw.org/t/init-error-65544/2064 "2026-01-03T23:01:02Z")

</div>

When i use glfwInit() i got this error 65544: Win32: Failed to retrieve own module handle. Im compiling my files to .dll file and next injecting it. Version of glfw - 3.4

---

## [Adapting vulkan-tutorial (uses GLFW) to Wayland](https://discourse.glfw.org/t/adapting-vulkan-tutorial-uses-glfw-to-wayland/2978)

<div class="topic-metadata">

**Author:** [@marrowbuster](https://discourse.glfw.org/u/marrowbuster)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 8:32am UTC](https://discourse.glfw.org/t/adapting-vulkan-tutorial-uses-glfw-to-wayland/2978 "2025-12-17T08:32:13Z")

</div>

The starter code of vulkan-tutorial works well enough under an X11 session, generating an empty window: #define GLFW\_INCLUDE\_VULKAN #include \<GLFW/glfw3.h\> #define GLM\_FORCE\_RADIANS #define GLM\_FORCE\_DEPTH\_ZERO\_TO\_ONE …

---

## [glfwJoystickIsGamepad returns false for an Xbox Wireless Controller](https://discourse.glfw.org/t/glfwjoystickisgamepad-returns-false-for-an-xbox-wireless-controller/2976)

<div class="topic-metadata">

**Author:** [@mort](https://discourse.glfw.org/u/mort)\
**Replies:** 1\
**Last updated:** [December 1, 2025, 11:58am UTC](https://discourse.glfw.org/t/glfwjoystickisgamepad-returns-false-for-an-xbox-wireless-controller/2976 "2025-12-01T11:58:11Z")

</div>

When I connect an Xbox Wireless Controller to my computer (running macOS 26), glfwJoystickIsPresent(0) returns true, but glfwJoystickIsGamepad(0) returns false. Here’s a small test program I wrote which demonstrates the…

---

## [GLFW\_REPEAT not triggering when glfwSwapBuffers() is repeatedly called](https://discourse.glfw.org/t/glfw-repeat-not-triggering-when-glfwswapbuffers-is-repeatedly-called/2975)

<div class="topic-metadata">

**Author:** [@skuhl](https://discourse.glfw.org/u/skuhl)\
**Replies:** 4\
**Last updated:** [November 25, 2025, 6:23pm UTC](https://discourse.glfw.org/t/glfw-repeat-not-triggering-when-glfwswapbuffers-is-repeatedly-called/2975 "2025-11-25T18:23:00Z")

</div>

I am using Ubuntu 25.10 with wayland and am having trouble getting the key callback to receive a GLFW\_REPEAT action. I have confirmed the problem with Ubuntu’s GLFW 3.4 package, compiling 3.4 from source, and GLFW git. I…

---

## [Complex Touchpad gestures](https://discourse.glfw.org/t/complex-touchpad-gestures/2974)

<div class="topic-metadata">

**Author:** [@qy9](https://discourse.glfw.org/u/qy9)\
**Replies:** 2\
**Last updated:** [November 2, 2025, 10:17am UTC](https://discourse.glfw.org/t/complex-touchpad-gestures/2974 "2025-11-02T10:17:26Z")

</div>

I want to add zooming with touchpad gestures to my project, by that I mean moving my fingers appart or closer like on a phone or laptop. Now I tried events.c to check if library could detect it, it didn’t. I went throug…

---

## [glfwSwapBuffers() causes segfault on Dedicated GPU (NVIDIA)](https://discourse.glfw.org/t/glfwswapbuffers-causes-segfault-on-dedicated-gpu-nvidia/2969)

<div class="topic-metadata">

**Author:** [@saiprasadhakki](https://discourse.glfw.org/u/saiprasadhakki)\
**Replies:** 6\
**Last updated:** [October 30, 2025, 5:26pm UTC](https://discourse.glfw.org/t/glfwswapbuffers-causes-segfault-on-dedicated-gpu-nvidia/2969 "2025-10-30T17:26:01Z")

</div>

GLFW: version 3.4 OS: Ubuntu 24.04.3 LTS GPU: NVIDIA Corporation GA104 \[Geforce RTX 3070 Ti Laptop GPU\] Drivers: OpenGL version string: 4.6.0 NVIDIA 570.172.08 Environment variables: \_\_GLX\_VENDOR\_LIBRARY\_NAME=nvidia …

---

## [Segfault on window recreation, launching via steam, on linux](https://discourse.glfw.org/t/segfault-on-window-recreation-launching-via-steam-on-linux/2972)

<div class="topic-metadata">

**Author:** [@therealryan](https://discourse.glfw.org/u/therealryan)\
**Replies:** 1\
**Last updated:** [October 22, 2025, 8:15pm UTC](https://discourse.glfw.org/t/segfault-on-window-recreation-launching-via-steam-on-linux/2972 "2025-10-22T20:15:30Z")

</div>

Howdy! I’ve discovered that I can reliably make my game crash by altering the display settings that cause the window handle to be destroyed and recreated. The window recreation works for the first three times, but the f…

---

## [Why is the 'glfwSetCharModsCallback' feature being deprecated?](https://discourse.glfw.org/t/why-is-the-glfwsetcharmodscallback-feature-being-deprecated/2971)

<div class="topic-metadata">

**Author:** [@OrionNuble](https://discourse.glfw.org/u/OrionNuble)\
**Replies:** 1\
**Last updated:** [October 22, 2025, 6:18pm UTC](https://discourse.glfw.org/t/why-is-the-glfwsetcharmodscallback-feature-being-deprecated/2971 "2025-10-22T18:18:31Z")

</div>

I was implementing a shortcut system when I realized that the character callback didn’t work when you were holding down modifier keys. Then I found out about the character mods callback. The issue is that the glfw docs s…

---

## [Multi-monitor bug with 4K display](https://discourse.glfw.org/t/multi-monitor-bug-with-4k-display/2970)

<div class="topic-metadata">

**Author:** [@lefty](https://discourse.glfw.org/u/lefty)\
**Replies:** 4\
**Last updated:** [October 15, 2025, 8:32pm UTC](https://discourse.glfw.org/t/multi-monitor-bug-with-4k-display/2970 "2025-10-15T20:32:58Z")

</div>

I am testing multi-monitor support for my GLFW application and I have come across a bug. The code I am using works 100% fine with 2 monitors, if one monitor is 1920x1080 and the second is 1920x1200, but if the second mon…

[Next page](https://discourse.glfw.org/latest.md?page=1)
