mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +00:00
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.
133 lines
3.5 KiB
JSON
133 lines
3.5 KiB
JSON
{
|
|
"cocoa": {
|
|
"headers": [
|
|
"cocoa_platform.h",
|
|
"cocoa_joystick.h",
|
|
"posix_thread.h"
|
|
],
|
|
"sources": [
|
|
"cocoa_init.m",
|
|
"cocoa_joystick.m",
|
|
"cocoa_monitor.m",
|
|
"cocoa_window.m",
|
|
"cocoa_displaylink.m",
|
|
"posix_thread.c"
|
|
]
|
|
},
|
|
"common": {
|
|
"headers": [
|
|
"internal.h",
|
|
"mappings.h"
|
|
],
|
|
"sources": [
|
|
"init.c",
|
|
"input.c",
|
|
"monitor.c",
|
|
"vulkan.c",
|
|
"monotonic.c",
|
|
"window.c"
|
|
]
|
|
},
|
|
"wayland": {
|
|
"headers": [
|
|
"wl_platform.h",
|
|
"posix_thread.h",
|
|
"wl_cursors.h",
|
|
"wl_text_input.h",
|
|
"xkb_glfw.h",
|
|
"dbus_glfw.h",
|
|
"ibus_glfw.h",
|
|
"backend_utils.h",
|
|
"linux_joystick.h",
|
|
"null_joystick.h",
|
|
"linux_notify.h",
|
|
"linux_desktop_settings.h",
|
|
"linux_session_monitor.h",
|
|
"wl_client_side_decorations.h",
|
|
"main_loop.h"
|
|
],
|
|
"protocols": [
|
|
"stable/xdg-shell/xdg-shell.xml",
|
|
"stable/viewporter/viewporter.xml",
|
|
"unstable/relative-pointer/relative-pointer-unstable-v1.xml",
|
|
"unstable/pointer-constraints/pointer-constraints-unstable-v1.xml",
|
|
"unstable/xdg-decoration/xdg-decoration-unstable-v1.xml",
|
|
"unstable/primary-selection/primary-selection-unstable-v1.xml",
|
|
"unstable/text-input/text-input-unstable-v3.xml",
|
|
"staging/xdg-activation/xdg-activation-v1.xml",
|
|
"unstable/tablet/tablet-unstable-v2.xml",
|
|
"staging/cursor-shape/cursor-shape-v1.xml",
|
|
"staging/fractional-scale/fractional-scale-v1.xml",
|
|
"staging/single-pixel-buffer/single-pixel-buffer-v1.xml",
|
|
"unstable/idle-inhibit/idle-inhibit-unstable-v1.xml",
|
|
"unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml",
|
|
"staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml",
|
|
"staging/xdg-system-bell/xdg-system-bell-v1.xml",
|
|
"staging/xdg-toplevel-tag/xdg-toplevel-tag-v1.xml",
|
|
"staging/ext-background-effect/ext-background-effect-v1.xml",
|
|
"staging/xdg-toplevel-drag/xdg-toplevel-drag-v1.xml",
|
|
"unstable/pointer-gestures/pointer-gestures-unstable-v1.xml",
|
|
"unstable/xdg-output/xdg-output-unstable-v1.xml",
|
|
"kwin-blur-v1.xml",
|
|
"wlr-layer-shell-unstable-v1.xml",
|
|
"wlr-virtual-pointer-unstable-v1.xml",
|
|
"virtual-keyboard-unstable-v1.xml"
|
|
],
|
|
"sources": [
|
|
"wl_init.c",
|
|
"wl_monitor.c",
|
|
"wl_window.c",
|
|
"wl_cursors.c",
|
|
"wl_text_input.c",
|
|
"wl_client_side_decorations.c",
|
|
"posix_thread.c",
|
|
"xkb_glfw.c",
|
|
"dbus_glfw.c",
|
|
"ibus_glfw.c",
|
|
"backend_utils.c",
|
|
"linux_joystick.c",
|
|
"linux_desktop_settings.c",
|
|
"null_joystick.c",
|
|
"momentum-scroll.c",
|
|
"linux_notify.c",
|
|
"linux_session_monitor.c",
|
|
"wl_inject.c"
|
|
]
|
|
},
|
|
"wayland_protocols": [
|
|
1,
|
|
17
|
|
],
|
|
"x11": {
|
|
"headers": [
|
|
"x11_platform.h",
|
|
"xkb_glfw.h",
|
|
"dbus_glfw.h",
|
|
"ibus_glfw.h",
|
|
"backend_utils.h",
|
|
"posix_thread.h",
|
|
"linux_joystick.h",
|
|
"null_joystick.h",
|
|
"linux_notify.h",
|
|
"linux_desktop_settings.h",
|
|
"linux_session_monitor.h",
|
|
"main_loop.h"
|
|
],
|
|
"sources": [
|
|
"x11_init.c",
|
|
"x11_monitor.c",
|
|
"x11_window.c",
|
|
"xkb_glfw.c",
|
|
"dbus_glfw.c",
|
|
"ibus_glfw.c",
|
|
"posix_thread.c",
|
|
"backend_utils.c",
|
|
"linux_joystick.c",
|
|
"null_joystick.c",
|
|
"linux_desktop_settings.c",
|
|
"momentum-scroll.c",
|
|
"linux_notify.c",
|
|
"linux_session_monitor.c"
|
|
]
|
|
}
|
|
}
|