kitty/glfw
Kovid Goyal b46525072b
Move OpenGL context creation from glfw into the GPU driver
glfw is now a windowing only library. It no longer creates OpenGL
contexts and contains no GLX, EGL, NSGL or OSMesa code. Instead it
exposes native window handles, and the GPU driver creates surfaces that
render into them, owning everything needed to render and present, such
as OpenGL contexts or, in future, Vulkan swapchains.

The GPU driver API (now version 2) gains surfaces: creation from native
X11, Wayland and Cocoa windows, making current, resizing, presenting,
swap interval, handling native view changes and recreation (macOS) and
choosing the X11 visual before window creation. The OpenGL driver
implements them with GLX on X11, EGL on Wayland and NSGL on macOS, all
ported from glfw, loading every library at runtime.

glfw gains a GLFW_X11_VISUAL_ID window hint, a native surface changed
callback (used on macOS where the NSOpenGLContext must be updated) and
glfwWindowContentsPresented(), which on Wayland commits surface state
after a frame is presented. The OpenGL context API, hints and the
share parameter of glfwCreateWindow() are removed.

The macOS (NSGL) code is untested as it could not be built.
2026-11-18 08:26:40 +05:30
..
backend_utils.c Fix #10436 2026-09-04 21:04:24 +05:30
backend_utils.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_displaylink.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_init.m Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
cocoa_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_joystick.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_monitor.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_platform.h Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
cocoa_window.m Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
dbus_glfw.c Desktop settings: Avoid duplicate portal queries and coalesce titlebar redraws 2026-10-30 10:07:13 +05:30
dbus_glfw.h Desktop settings: Avoid duplicate portal queries and coalesce titlebar redraws 2026-10-30 10:07:13 +05:30
glfw.py Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
glfw3.h Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
ibus_glfw.c IME: Show the cursor at the position reported by the input method in the pre-edit text 2026-11-05 08:26:34 +05:30
ibus_glfw.h Cleanup previous PR 2026-10-10 12:45:19 +05:30
init.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
input.c Wayland CSD: Parse the titlebar font description once in glfw 2026-10-30 09:03:46 +05:30
internal.h Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
kwin-blur-v1.xml
linux_desktop_settings.c Desktop settings: Avoid duplicate portal queries and coalesce titlebar redraws 2026-10-30 10:07:13 +05:30
linux_desktop_settings.h Run autoformat 2026-10-30 09:07:45 +05:30
linux_joystick.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
linux_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
linux_notify.c Linux: Send kitty's .desktop file name to notification servers for grouping 2026-10-23 08:47:19 +05:30
linux_notify.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
linux_session_monitor.c Implement session saving on Logout for Linux as well 2026-10-19 10:49:22 +05:30
linux_session_monitor.h Implement session saving on Logout for Linux as well 2026-10-19 10:49:22 +05:30
main_loop.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
mappings.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
memfd.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
momentum-scroll.c Fix momentum scroll scale not being set for negative deltas 2026-10-05 20:42:16 +05:30
monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
monotonic.c
null_joystick.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
posix_thread.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
posix_thread.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
source-info.json Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
virtual-keyboard-unstable-v1.xml Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
vulkan.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
window.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
wl_client_side_decorations.c Wayland CSD: Re-render on keyboard focus changes 2026-11-15 20:06:45 +05:30
wl_client_side_decorations.h Wayland CSD: Re-render on keyboard focus changes 2026-11-15 20:06:45 +05:30
wl_cursors.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_cursors.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_init.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
wl_inject.c Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
wl_monitor.c Wayland: Fix unbounded wait for xdg_output geometry 2026-11-05 08:52:20 +05:30
wl_platform.h Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
wl_text_input.c IME: Show the cursor at the position reported by the input method in the pre-edit text 2026-11-05 08:26:34 +05:30
wl_text_input.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_window.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
wlr-layer-shell-unstable-v1.xml
wlr-virtual-pointer-unstable-v1.xml Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
x11_init.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
x11_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
x11_platform.h Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
x11_window.c Move OpenGL context creation from glfw into the GPU driver 2026-11-18 08:26:40 +05:30
xkb-compat-shim.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
xkb_glfw.c Re-apply remap_modifiers to a reloaded xkb keymap state 2026-08-13 10:20:20 +01:00
xkb_glfw.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30