voxelcore/res
alexei-zebra b5416d1219
Fix the issues found while reviewing the Wayland frame work
A review of the branch turned up a number of defects, gaps and leftovers;
this commit addresses all of them.

Defects:
- the shadow uniform array held seven entries while eight locations were
  written, so the last one landed outside the object;
- CursorShape::LAST stayed in the middle of the enum after the new corner
  shapes were appended, which made the GLFW cursor table read out of
  bounds; the extra shapes are now mapped onto the ones GLFW knows, and
  the table is only filled for those;
- GlStateGuard asked glIsEnabled for an attribute pname, so it always got
  GL_INVALID_ENUM and never restored the vertex attribute arrays;
- the early returns in wayland_window_initialize left the global window
  and input pointers dangling when falling back to GLFW;
- the icon textures were listed nowhere, so none of them ever loaded;
- a shader failure disabled the shadow after the surface had already been
  sized for it, and VOXEL_DECORATIONS outlived the switch cleanup.

Behavior:
- the keyboard now releases every pressed key when it loses focus, and a
  repeat rate of zero means no repeat;
- the fourth UTF-8 lead byte is decoded with the right mask, control
  characters no longer reach text fields, and a vanished clipboard offer
  clears the cached text;
- compositor side decorations disable ours again instead of leaving two
  titles, the window destructor releases the rest of the state, and the
  content inset is computed before the GUI acts so the HUD and the
  container never disagree for a frame; the HUD clamps it;
- the window controls fall back to minimize, maximize and close, and the
  icons are drawn from textures only.

Cleanups: one monotonic timer instead of three, one vertex shader shared
by both renderers with a link check, one button layout parser, the inset
rule moved into Screen, the scissor stack moved into the base Window
(about 110 duplicated lines), named shadow and evdev constants, trimmed
includes, a README note about the Wayland dependencies, and the long
lines introduced by this branch wrapped.
2026-10-10 12:23:42 +03:00
..
config remove res/config/builtins.list 2025-04-22 21:46:51 +03:00
content/base move hud away from utils 2 & add new argument 2026-08-17 23:47:51 +05:00
devtools update vca.toml 2026-09-06 01:38:19 +03:00
fonts removed unused file 2024-02-28 16:39:41 +03:00
generators convert generator parameters naming to the project style 2024-10-14 04:45:11 +03:00
layouts add 'Fog' settings to ui 2026-09-26 19:18:29 +03:00
models Merge branch 'main' into animation 2026-08-18 23:37:27 +03:00
modules fix vca 'configure' directive parsing 2026-10-05 22:11:21 +03:00
presets add 'sky_tint', 'clouds_tint', 'min_sky_light' weather parameters 2026-02-12 20:27:29 +03:00
scripts fix reload_module ignoring pack environment 2026-10-10 00:52:23 +03:00
shaders revert "update shadows.glsl" 2026-10-03 11:10:56 +03:00
texts update en_US.txt, ru_RU.txt 2026-09-26 19:21:00 +03:00
textures Give the Wayland window an Adwaita-like frame 2026-10-10 12:23:41 +03:00
preload.json Fix the issues found while reviewing the Wayland frame work 2026-10-10 12:23:42 +03:00
project.toml add sub-instance project permission & feat: max sub-process depth check 2026-08-02 01:19:01 +03:00
project_client.lua temporary fix improvement 2025-12-02 22:59:56 +03:00
resources.json change 'graphics.ssao' from flag to number 2025-12-19 18:55:55 +03:00