logiguard fork v2: patched GPUI on verified 8c74db0 tree

Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca
tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch:
  - serial.rs: add SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; add latest_serial_of()
  - window.rs: activate() uses keyboard-enter serial (Mutter focus gate)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 01:44:22 +03:30
co-authored by Claude Fable 5
commit 46c7879954
3984 changed files with 1487015 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p gitMinimal curl gojq gclient2nix
set -eou pipefail
package="livekit-libwebrtc"
pkg_dir="$(dirname "$0")"
nixpkgs="$(git rev-parse --show-toplevel)"
gh-curl () {
curl --silent ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "$1"
}
# Get the current version part before the "-unstable-" for the branch name.
# To manually update to a new major version, you can also invoke the script
# with the new major version, e.g., UPDATE_MAJOR_VERSION=137.
old_version="${UPDATE_NIX_OLD_VERSION:-$(nix-instantiate --eval -E "(import \"$nixpkgs\" { }).$package.version" | tr -d '"')}"
major_version="${UPDATE_MAJOR_VERSION:-${old_version%%-unstable-*}}"
branch="m${major_version}_release"
# Fetch the current HEAD commit of the release branch
head="$(gh-curl "https://api.github.com/repos/webrtc-sdk/webrtc/git/refs/heads/$branch" | gojq '.object.sha' --raw-output)"
if gojq -e ".src.args.rev == \"$head\"" "$pkg_dir/sources.json"; then
echo "$package is already up-to-date: $head"
exit 0
fi
# Get the commit's date for the version field
date="$(gh-curl "https://api.github.com/repos/webrtc-sdk/webrtc/git/commits/$head" | gojq '.committer.date| split("T") | .[0]' --raw-output)"
echo "Updating sources.json to $head"
gclient2nix generate --root src "https://github.com/webrtc-sdk/webrtc@$head" > "$pkg_dir/sources.json"
sed -i "s|$old_version|$major_version-unstable-$date|g" "$pkg_dir/package.nix"