logiguard fork v3: full patch set on verified 8c74db0 tree

Includes prior-session patches (carry forward so the app compiles):
  - crates/gpui/build.rs: cross-compile manifest fix
  - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method
  - crates/gpui/src/window.rs: Window::activate_with_token public API
  - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix

Plus the focus-serial fix:
  - serial.rs: SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; latest_serial_of()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 01:52:12 +03:30
commit b9819977a5
3984 changed files with 1487015 additions and 0 deletions

16
crates/menu/Cargo.toml Normal file
View File

@@ -0,0 +1,16 @@
[package]
name = "menu"
version = "0.1.0"
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"
[lints]
workspace = true
[lib]
path = "src/menu.rs"
doctest = false
[dependencies]
gpui.workspace = true

1
crates/menu/LICENSE-GPL Symbolic link
View File

@@ -0,0 +1 @@
../../LICENSE-GPL

37
crates/menu/src/menu.rs Normal file
View File

@@ -0,0 +1,37 @@
use gpui::actions;
// If the zed binary doesn't use anything in this crate, it will be optimized away
// and the actions won't initialize. So we just provide an empty initialization function
// to be called from main.
//
// These may provide relevant context:
// https://github.com/rust-lang/rust/issues/47384
// https://github.com/mmastrac/rust-ctor/issues/280
pub fn init() {}
actions!(
menu,
[
/// Cancels the current menu operation.
Cancel,
/// Confirms the selected menu item.
Confirm,
/// Performs secondary confirmation action.
SecondaryConfirm,
/// Selects the previous item in the menu.
SelectPrevious,
/// Selects the next item in the menu.
SelectNext,
/// Selects the first item in the menu.
SelectFirst,
/// Selects the last item in the menu.
SelectLast,
/// Enters a submenu (navigates to child menu).
SelectChild,
/// Exits a submenu (navigates to parent menu).
SelectParent,
/// Restarts the menu from the beginning.
Restart,
EndSlot,
]
);