kitty/glfw
Kovid Goyal 2b260d8d67
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
Wayland CSD: Re-render on keyboard focus changes
The focus state of the decorations comes only from keyboard enter/leave
events, but the decorations were only re-rendered on configure events and
title changes. So they showed a stale focus state whenever focus changed
without a following configure, for example, when switching between tabbed
windows in niri, which keeps all tabs activated.

Re-render the decorations on keyboard enter/leave, looking up the window
again after the focus callbacks have run, since they can close it.

Also:
- Ignore the activated state in the change detection, as focus is tracked
  separately, to avoid rendering twice per focus change.
- Never create decoration surfaces in ensure_csd_resources() for windows
  that should not be decorated, such as fullscreen windows. Title changes
  while fullscreen could previously create them from a stale state.
- Recreate the decoration surfaces when they are missing even if the
  window state is unchanged, otherwise the resize borders were not
  restored after leaving fullscreen with hide_window_decorations
  titlebar-only.

Based on the patch by Ole Jørgen Brønner.

Closes #10873
2026-11-15 20:06:45 +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 macOS: Fix a possible use-after-free of the tick lock when quitting 2026-10-20 09:20:58 +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 macOS: Fix pasting paths from dropped file promises 2026-09-02 09:35:55 +05:30
cocoa_window.m 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
context.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +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
egl_context.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
egl_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
glfw.py Implement session saving on Logout for Linux as well 2026-10-19 10:49:22 +05:30
glfw3.h 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
glx_context.c X11: Use a single process wide X error handler 2026-11-09 09:01:19 +05:30
glx_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +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 Fix #10492 2026-09-19 15:21:29 +05:30
input.c Wayland CSD: Parse the titlebar font description once in glfw 2026-10-30 09:03:46 +05:30
internal.h Wayland CSD: Move titlebar settings handling into the Wayland backend 2026-10-30 08:59:11 +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
nsgl_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
nsgl_context.m autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
null_init.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
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
null_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_platform.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_window.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
osmesa_context.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
osmesa_context.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 Implement session saving on Logout for Linux as well 2026-10-19 10:49:22 +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 autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
window.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +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 Wayland CSD: Re-render on keyboard focus changes 2026-11-15 20:06:45 +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 Wayland CSD: Re-render on keyboard focus changes 2026-11-15 20:06:45 +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 Wayland CSD: Re-render on keyboard focus changes 2026-11-15 20:06:45 +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 X11: Use a single process wide X error handler 2026-11-09 09:01:19 +05:30
x11_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
x11_platform.h X11: Use a single process wide X error handler 2026-11-09 09:01:19 +05:30
x11_window.c X11: Use a single process wide X error handler 2026-11-09 09:01:19 +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