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
+21
View File
@@ -0,0 +1,21 @@
[package]
name = "zlog_settings"
version = "0.1.0"
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"
[lints]
workspace = true
[lib]
path = "src/zlog_settings.rs"
[features]
default = []
[dependencies]
gpui.workspace = true
collections.workspace = true
settings.workspace = true
zlog.workspace = true
+1
View File
@@ -0,0 +1 @@
../../LICENSE-GPL
+30
View File
@@ -0,0 +1,30 @@
//! # zlog_settings
use collections::HashMap;
use gpui::App;
use settings::{RegisterSetting, Settings, SettingsStore};
pub fn init(cx: &mut App) {
cx.observe_global::<SettingsStore>(|cx| {
let zlog_settings = ZlogSettings::get_global(cx);
zlog::filter::refresh_from_settings(&zlog_settings.scopes);
})
.detach();
}
#[derive(Clone, Debug, RegisterSetting)]
pub struct ZlogSettings {
/// A map of log scopes to the desired log level.
/// Useful for filtering out noisy logs or enabling more verbose logging.
///
/// Example: {"log": {"client": "warn"}}
pub scopes: HashMap<String, String>,
}
impl Settings for ZlogSettings {
fn from_settings(content: &settings::SettingsContent) -> Self {
ZlogSettings {
scopes: content.log.clone().unwrap(),
}
}
}